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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 28 09:07:23 CET 2014


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

--- Comment #33 from Paul Poulain <paul.poulain at biblibre.com> ---
(In reply to David Cook from comment #32)
> (In reply to wajasu from comment #31)
> > Idea: To determine which indexes get the additional index:0, we could:
> > provide a UI(similiar to msaby's suggestion that allows us to select an
> > index by grabbing the <target_index> nodes from biblios-koha-indexdefs.xml,
> > and search replacing
> > <target_index>index:p</target_index> with
> > <target_index>index:p</target_index><target_index>index:0</target_index>
> > (control_field, data_field, sub_field savy UI is possible)
> > 
> 
> I think that this is a bad idea.
Agreed with most of your points. One of the reason being that it's impossible
to have everything made by the librarian (any change require rebuilding zebra
DB, plus some/many config file change. and yes, it's not a good idea to let the
webserver write in /etc ...). So I prefer to have everything made by a
sysadmin.

When we worked on Solr, we made indexes accessible by the web interface, but
it's something shipped with Solr. That's not the case for Zebra.
> We put the list of indexes in a file, make sure that those indexes are sent
> off to Zebra when doing a facet query, and that's that.
Zebra is highly sensitive on how the config files are written. I'm not sure you
can have :0 indexes in a separate file.
AFAIK, when you double declare a line, only the last one is taken into account.
So:
melm 245$a Title:w,Title:p
melm 245$a Title:0
would result in Title:0 being the only index. Which is not what we want.

> Simple and elegant. We provide a set of default facets, and if folks want to
> add their own, we leave them with good enough instructions to do so.
+1

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


More information about the Koha-bugs mailing list