<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Segoe UI Symbol";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
        {mso-style-name:x_msonormal;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle20
        {mso-style-type:personal-compose;
        font-family:"Times New Roman",serif;
        color:black;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:2036077255;
        mso-list-template-ids:795121270;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="SV" link="blue" vlink="purple">
<div class="WordSection1">
<div id="divtagdefaultwrapper">
<ol start="1" type="1">
<li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
<span lang="EN-US" style="font-size:12.0pt">To begin with: “use_zebra_facets” was set to 1 in koha-conf.xml file, so that was not the problem.<o:p></o:p></span></li><li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
<span lang="EN-US" style="font-size:12.0pt">Regarding Zebra’s native faceting I find some traces in an old RCF saying that it would be nice to replace "</span><span lang="EN-US" style="font-size:9.5pt;font-family:"Arial",sans-serif">homegrown and inefficient
 routines for faceting" with </span><span lang="EN-US" style="font-size:12.0pt">Zebra’s native faceting. </span><span style="font-size:12.0pt"><a href="https://wiki.koha-community.org/wiki/C_%26_P_Search_Rewrite_RFC#.28e.29_Implement_search_engine_native_faceting">https://wiki.koha-community.org/wiki/C_%26_P_Search_Rewrite_RFC#.28e.29_Implement_search_engine_native_faceting</a>.</span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></li><li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
<span lang="EN-US" style="font-size:12.0pt">I have also checked some libraries around the world with Koha </span><span lang="EN-US" style="font-size:9.5pt;font-family:"Arial",sans-serif">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.</span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></li><li class="MsoNormal" style="color:black;mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-list:l0 level1 lfo1">
<span lang="EN-US" style="font-size:9.5pt;font-family:"Arial",sans-serif">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 </span><span lang="EN-AU" style="color:windowtext">bug 18235</span><span lang="EN-US" style="font-size:9.5pt;font-family:"Arial",sans-serif">?</span><span lang="EN-US" style="font-size:12.0pt"><o:p></o:p></span></li></ol>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;color:black"><o:p> </o:p></span></p>
<p><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black">The best</span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:9.5pt;font-family:"Arial",sans-serif;color:black">Claes</span><span style="font-size:12.0pt;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:7.5pt;color:#767171">------------------------------------<br>
</span><b><span lang="EN-US" style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:black">Claes Eriksson</span></b><b><span lang="EN-US" style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#767171"><br>
</span></b><span lang="EN-US" style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#7F7F7F">Information specialist<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Verdana",sans-serif;color:#7F7F7F"><br>
</span><span lang="EN-US" style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#7F7F7F">Department of Communication, Marketing and Library</span><span lang="EN-US" style="color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#7F7F7F">Swedish National Road and Transport Research Institute</span></b><span lang="EN-US" style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#7F7F7F">
 (VTI)<br>
VTI, SE-581 95 Linkoeping, Sweden<br>
Tel: +46-13-20 40 00  Direct: +46-13-20 41 99<br>
E-mail: <a href="mailto:claes.eriksson@vti.se">claes.eriksson@vti.se</a></span><span lang="EN-US" style="color:black"><o:p></o:p></span></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">Från:</span></b><span style="color:black"> Tomas Cohen Arazi <tomascohen@gmail.com><br>
<b>Skickat:</b> den 20 februari 2018 01:13:18<br>
<b>Till:</b> David Cook<br>
<b>Kopia:</b> Claes Eriksson; koha-devel@lists.koha-community.org<br>
<b>Ämne:</b> Re: [Koha-devel] Elasticsearch and facets</span> <o:p></o:p></p>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">Facets are configurable, and goal is feature parity.<o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal">El lun., 19 de feb. de 2018 8:59 p. m., David Cook <<a href="mailto:dcook@prosentient.com.au">dcook@prosentient.com.au</a>> escribió:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="xmsonormal"><span style="color:#1F497D">Hi Claes,</span><o:p></o:p></p>
<p class="xmsonormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D">I think the maxRecordsForFacets system preference might be a bit legacy at this point. It was first used when we were building facets manually from retrieved records from Zebra (which was an awful
 awful no good process). However, I think most installations using Zebra these days use Zebra’s native faceting which uses the entire result set. At least that’s how things were a year or two ago. It may have changed since then. I’d have to double-check, and
 I have a lot on at the moment, so I’ll leave that for yourself or someone else to check. In any case, we’re all aware of the limitations around that system preference, which is why we made the move to Zebra’s native faceting. (One easy thing to check is in
 your koha-conf.xml file to see if “use_zebra_facets” is set to 1. If so, then I think “maxRecordsForFacets” shouldn’t have any effect.</span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D"> </span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D">I’m not very familiar with the ElasticSearch efforts, but I think it started out as a like-for-like drop-in replacement. Making facets configurable would be great, but I’m not sure anyone has this
 as a priority at the moment. I think for now the main goal of ElasticSearch may be stability?</span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D"> </span><span lang="EN-AU"><o:p></o:p></span></p>
<div>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D">David Cook</span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D">Systems Librarian</span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D">Prosentient Systems</span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D">72/330 Wattle St</span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D">Ultimo, NSW 2007</span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D">Australia</span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D"> </span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D">Office: 02 9212 0899</span><span lang="EN-AU"><o:p></o:p></span></p>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D">Direct: 02 8005 0595</span><span lang="EN-AU"><o:p></o:p></span></p>
</div>
<p class="xmsonormal"><span lang="EN-AU" style="color:#1F497D"> </span><span lang="EN-AU"><o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="xmsonormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> <a href="mailto:koha-devel-bounces@lists.koha-community.org" target="_blank">
koha-devel-bounces@lists.koha-community.org</a> [mailto:<a href="mailto:koha-devel-bounces@lists.koha-community.org" target="_blank">koha-devel-bounces@lists.koha-community.org</a>]
<b>On Behalf Of </b>Claes Eriksson<br>
<b>Sent:</b> Monday, 19 February 2018 11:01 PM<br>
<b>To:</b> <a href="mailto:koha-devel@lists.koha-community.org" target="_blank">koha-devel@lists.koha-community.org</a><br>
<b>Subject:</b> [Koha-devel] Elasticsearch and facets</span><span lang="EN-AU"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<p class="xmsonormal"><span lang="EN-AU"> <o:p></o:p></span></p>
<div>
<p class="xmsonormal"><span lang="EN-AU">First some ranting about Zebra and then a question about ElasticSearch.<o:p></o:p></span></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-AU"> <o:p></o:p></span></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-AU">Using Zebra there is a Global system pref. called maxRecordsForFacets. By default the number of records used to build the facet list is the first 20 results shown. You also get a warning in the manual to increase the
 number since it will impact respons time. Building a facet list out of 20 records may be enough for some people but if you think twice about it you realise that it is quite misleading, especially since the user does not know that the facet list is built on
 a very limited selection of records. Having the sort set on Author and searching for realivity theory, the facet list may not show Einstein if your library is specialised in physics and have a fairly large collection.<o:p></o:p></span></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-AU"> <o:p></o:p></span></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-AU">I have high hopes for ElasticSearch to work with facets in a better way. The best would be if all the index could be used for producing e.g. the author facet and that it would have minimal impact on system performance.
 I understand that there is discussion about making facets configurable (bug 18235) but I cannot see any traces of the improvements I would like to see, but I may be wrong since I am quite new working with Koha.<o:p></o:p></span></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-AU"> <o:p></o:p></span></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-AU">Regards<o:p></o:p></span></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-AU">Claes Eriksson, VTI, Sweden<o:p></o:p></span></p>
</div>
<div>
<p class="xmsonormal"><span lang="EN-AU"> <o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal"><span lang="EN-AU">_______________________________________________<br>
Koha-devel mailing list<br>
</span><a href="mailto:Koha-devel@lists.koha-community.org" target="_blank"><span lang="EN-AU">Koha-devel@lists.koha-community.org</span></a><span lang="EN-AU"><br>
</span><a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank"><span lang="EN-AU">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</span></a><span lang="EN-AU"><br>
website : </span><a href="http://www.koha-community.org/" target="_blank"><span lang="EN-AU">http://www.koha-community.org/</span></a><span lang="EN-AU"><br>
git : </span><a href="http://git.koha-community.org/" target="_blank"><span lang="EN-AU">http://git.koha-community.org/</span></a><span lang="EN-AU"><br>
bugs : </span><a href="http://bugs.koha-community.org/" target="_blank"><span lang="EN-AU">http://bugs.koha-community.org/</span></a><span lang="EN-AU"><o:p></o:p></span></p>
</blockquote>
</div>
<p class="MsoNormal"><span lang="EN-US">-- <o:p></o:p></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:#757575">Tomás Cohen Arazi<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:#757575">Theke Solutions (</span><span style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:#757575"><a href="http://theke.io/"><span lang="EN-US">https://theke.io</span></a></span><span lang="EN-US" style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:#757575">)<br>
</span><span lang="EN-US" style="font-size:9.5pt;font-family:"Segoe UI Symbol",sans-serif;color:#757575">✆</span><span lang="EN-US" style="font-size:9.5pt;font-family:"Helvetica",sans-serif;color:#757575"> +54 9351 3513384<br>
GPG: B2F3C15F<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>