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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 11 01:13:13 CET 2013


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

            Bug ID: 11232
           Summary: Retrieve facets from Zebra
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: new feature
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: gmcharlt at gmail.com
          Reporter: dcook at prosentient.com.au
        QA Contact: testopia at bugs.koha-community.org

At Kohacon, a few of us (Jared, Paul P, Tomas, myself, and possibly others)
looked at using Zebra's native facetting. 

After a bit of trial and error, in the final 15 minutes of the hackfest, we
were able to get it working using queries in YAZ(high fives all around), but
I'm not sure if anyone has followed up on that work (as I've been on holiday).
I don't see any existing bug reports for adding this functionality to Koha, but
I think it would be preferable to how we build facets at the moment (hence this
bug). 

This method should be:

1) faster (since it is pulling the facets from the search results using indexes
rather than iterating through every record);
2) more comprehensive (it is based on the full result set and not just the
first 50 or so results [depending on your sysprefs]);
3) able to build facets for control fields and the leader (since it pulls data
using indexes, we should be able to easily build facets for publication year,
record type, etc.).

In terms of customizability (bug 10891), it might be more difficult to change
on the fly.

This is because we need to explicitly define each facet index in our
configuration files for Zebra.

I'll need to look over my notes and do a few more experiments, but I'm quite
certain this is the case.

While we could add a mechanism for allowing users to specify which facets to
retrieve and display (probably a good idea), we couldn't do the same for the
static XML config file. So we would need to either include all the indexes in
the XML config file or mark it as a place for local changes.

I'm not sure about the cost/benefit of telling Zebra that every index could be
used as a facet. I don't imagine it would be too much of a cost though, since
the list of facets would be fed to Zebra on start up and not runtime.

--

As I said, I'm  not sure if anyone is working on the native facetting at the
moment. I would like to but I'll have to look at my workload and chat to my
boss.

I'll be happy to post my notes in a comment tomorrow on how to get it to work.
The config is slightly different for DOM and GRS1 but it works well for both.

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


More information about the Koha-bugs mailing list