[Koha-devel] Elasticsearch and facets

Tomas Cohen Arazi tomascohen at gmail.com
Tue Feb 20 17:14:11 CET 2018


El mar., 20 feb. 2018 a las 10:23, Claes Eriksson (<claes.eriksson at vti.se>)
escribió:
> Regarding Zebra’s native faceting I find some traces in an old RCF saying
that it would
> be nice to replace "homegrown and inefficient routines for faceting" with
Zebra’s native
> faceting.

Zebra facets usage was implemented here:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11232

> I have also checked some libraries around the world with Koha set up by
some of the larger
> consultants and they all handle facets in this way. I may ad to my
ranting that it becomes a
> serious problem when it comes to subject facets. Narrowing down a search
using subject
> facets that does only reflect the first 20 results is not helping a
student or researcher. BTW,
> we tested setting default to 50 first results and response time increased
with 5-8 seconds =
> not acceptable.

If you are using Zebra's native facets implementation (use_zebra_facets) on
a recent Koha version (i.e. using DOM indexing) then your system is not
using maxRecordsForFacets, but this configuration:

https://gitlab.com/koha-community/Koha/blob/master/etc/zebradb/zebra-biblios-dom.cfg#L31

As you can see, it is pulling the facets from the first 1000 records in the
result set. You could definitely try lowering it down to something
reasonable (in your terms).

> As I understand facets are hardcoded in Zebra and not at all
configurable. If I am wrong I would > be most grateful if you could hint me
in the right direction. In ElasticSearch it is under
> discussion and not solved according to bug 18235?

Sorry for the mistake, I had my eyes on that bug a while ago and was sure
there was lots of interest in the feature, so assumed it was already in
master!

Good luck.


-- 
Tomás Cohen Arazi
Theke Solutions (https://theke.io <http://theke.io/>)
✆ +54 9351 3513384
GPG: B2F3C15F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20180220/d26a3f11/attachment.html>


More information about the Koha-devel mailing list