[Koha-bugs] [Bug 11232] Retrieve facets from Zebra

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 3 00:58:07 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11232

--- Comment #7 from David Cook <dcook at prosentient.com.au> ---
Also note that you will have to individually set up each index that you want to
use for facet queries.

As per this email from an IndexData person:
http://lists.indexdata.dk/pipermail/zebralist/2007-July/001694.html

In general, this shouldn't case a problem, since we only use a short list of
facets. However, it would create a barrier to allowing users to customize their
results.

In theory, we could list all or most of the available indexes in the Zebra
config files. Then, we could use a system preference or a DB table to choose
which indexes we want to use for facets. This would generate the "elements"
string that we pass to Zebra everytime we want our facets.

Actually, now that I think about it...that might not be a bad idea. We already
have that Search.pm sub where we're manually keeping track of indexes, so we
could keep that or use something similar to fill an HTML list and have that
create our Zebra facet string. 

So long as we generate the string once and then use it multiple times...that
should be all right. We could also have a hardcoded fallback string in case
someone deletes the facet config in Koha or if their facet config is bad. 

Hmm. Ideas. Ideas. Ideas...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list