From: Adam Dickmeiss Date: Fri, 16 Dec 2011 12:39:29 +0000 (+0100) Subject: pz:limitmap:x local:field feature X-Git-Tag: v1.6.7~16^2~2 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=27016d60246d69c482a8f04135ee9c93a1593981;p=pazpar2-moved-to-github.git pz:limitmap:x local:field feature The local filter may optionally be followed by field. --- diff --git a/src/client.c b/src/client.c index 7dc07d8..44d7f57 100644 --- a/src/client.c +++ b/src/client.c @@ -1067,10 +1067,14 @@ const char *client_get_facet_limit_local(struct client *cl, if (p && !strcmp(p + 1, name) && s->value && !strncmp(s->value, "local:", 6)) { + const char *cp = s->value + 6; + while (*cp == ' ') + cp++; + nmem_strsplit_escape2(nmem, "|", value, values, num, 1, '\\', 1); (*l)++; - return name; + return *cp ? cp : name; } } }