From: Heikki Levanto Date: Tue, 21 Jul 2015 08:37:13 +0000 (+0200) Subject: Fix PAZ-1009: Do not create local facets when facetmap:split X-Git-Tag: v1.11.1~1 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=0f6fb28830e5b5d7f98b1689c64bbf19f538f0b6;p=pazpar2-moved-to-github.git Fix PAZ-1009: Do not create local facets when facetmap:split --- diff --git a/doc/common b/doc/common index 790930a..6cdcfde 160000 --- a/doc/common +++ b/doc/common @@ -1 +1 @@ -Subproject commit 790930ae30e7d12e02a512a109fc40c82675df20 +Subproject commit 6cdcfde2c770531a571d755ed070059ee7ab4fc9 diff --git a/src/client.c b/src/client.c index 644e42d..ff6e2a7 100644 --- a/src/client.c +++ b/src/client.c @@ -778,6 +778,8 @@ int client_has_facet(struct client *cl, const char *name) for (s = sdb->settings[PZ_FACETMAP]; s; s = s->next) { const char *p = strchr(s->name + 3, ':'); + if ( !strncmp(p, ":split:", 7) ) + p += 6; // PAZ-1009 if (p && !strcmp(name, p + 1)) return 1; }