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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 24 02:32:25 CET 2014


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

--- Comment #28 from David Cook <dcook at prosentient.com.au> ---
Thanks again, Tomas!

I'm accustomed to using the GRS-1 filter, so I forgot about transforming the
XML into XSL for DOM indexing. Problem solved! Yay!

That's great information about appending "100" to the element to get a longer
facet list as well! I don't know if we would necessarily want more than 20
results per facet, but it's nice to have the configurability to change it.

However, I would recommend "not" hardcoding "zebra::facet::subject:0:100" into
zebradb/retrieval-info-bib-dom.xml.

Try just using "<retrieval syntax="xml"/>" in
"zebradb/retrieval-info-bib-dom.xml". It's a much more flexible configuration.

It lets you change "100" to "50" or whatever just by using the "elements"
command in YAZ. You can also chain facets in elements so that you can run 1
query but get the facets for 5 different elements. (e.g.  elements
zebra::facet::title:0:100,subject:0:25,itype:0:30)

[Sidenote: I see my earlier comments about index case sensitivity aren't
correct, at least when using the <retrieval syntax="xml"/> config.]

Yes, I think we've found a solution! Time to start writing code!

The only obstacle I see now is determining which indexes need the "index 0". I
suppose all the fields currently used for facets...plus pubdate.

This will also be an obstacle in terms of having configurable facets. Using
"<retrieval syntax="xml"/>" in the Zebra config would let you spin a query with
any facets we want, but relying on that "index 0" will determine which results
return usable data...

Still...very exciting!

I imagine it would be useful to write something a bit abstract for getting
facets, so that we can make it easier to plugin other indexers like Solr and
ElasticSearch...

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


More information about the Koha-bugs mailing list