From: Adam Dickmeiss Date: Tue, 13 Oct 2009 09:19:15 +0000 (+0200) Subject: Operator for pz:recordfilter is ~ (tilde). X-Git-Tag: v1.2.2~3 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=ec1a0e3f9b22db0f03fb22e43f374f2cdffce438;p=pazpar2-moved-to-github.git Operator for pz:recordfilter is ~ (tilde). 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). --- diff --git a/src/logic.c b/src/logic.c index cc09dd1..9e24e8a 100644 --- 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