projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c82540c
)
Operator for pz:recordfilter is ~ (tilde).
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 13 Oct 2009 09:19:15 +0000
(11:19 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 13 Oct 2009 09:19:15 +0000
(11:19 +0200)
The operator used to be = (equals), but since pz:recordfilter only
does substring match it seems more natural to harmonize with the
filter semantics (which has ~ for substring, = for string match).
src/logic.c
patch
|
blob
|
history
diff --git
a/src/logic.c
b/src/logic.c
index
cc09dd1
..
9e24e8a
100644
(file)
--- a/
src/logic.c
+++ b/
src/logic.c
@@
-1023,7
+1023,7
@@
static int check_record_filter(xmlNode *root, struct session_database *sdb)
if (type)
{
size_t len;
- const char *eq = strchr(s, '=');
+ const char *eq = strchr(s, '~');
if (eq)
len = eq - s;
else