Operator for pz:recordfilter is ~ (tilde).
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 13 Oct 2009 09:19:15 +0000 (11:19 +0200)
committerAdam 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

index cc09dd1..9e24e8a 100644 (file)
@@ -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