From ccf7ae56f6ba3a4af6d3b65764449194fe657e50 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 14 Oct 2014 19:13:00 -0300 Subject: [PATCH] Bug 11232: (qa followup) Add missing fields/subfields to the item types faceta The itype facet was missing 952$y for both MARC21 and NORMARC. This patch adds that. And also modifies the zebra-biblios-dom.cfg file (also the debian/ version) so facetNumRecs is set to 1000 for zebra. It is the amount of records that are taken into account. The more record, the more exact the facets for the result set. 1000 was chosen as it changed the time to reindex 1000 records from 18s to 19s. Signed-off-by: Tomas Cohen Arazi Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- debian/templates/zebra-biblios-dom-site.cfg.in | 1 + etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml | 3 +++ .../marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl | 3 +++ .../marc_defs/normarc/biblios/biblio-koha-indexdefs.xml | 3 +++ .../marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl | 3 +++ etc/zebradb/zebra-biblios-dom.cfg | 1 + 6 files changed, 14 insertions(+) diff --git a/debian/templates/zebra-biblios-dom-site.cfg.in b/debian/templates/zebra-biblios-dom-site.cfg.in index 88d0d6ded7..03a231317f 100644 --- a/debian/templates/zebra-biblios-dom-site.cfg.in +++ b/debian/templates/zebra-biblios-dom-site.cfg.in @@ -28,6 +28,7 @@ iso2709.recordtype: dom./etc/koha/zebradb/biblios/etc/dom-config-marc.xml recordId: (bib1,Local-number) storeKeys:1 storeData:1 +facetNumRecs:1000 # Lock File Area diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml index 6364eceb85..c7dd16661a 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml @@ -1322,5 +1322,8 @@ location:0 + + itype:0 + diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl index cd6db2a5c6..89aefee8e2 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl @@ -2420,6 +2420,9 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + diff --git a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml index dcd9584c48..d2aef1a72a 100644 --- a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml @@ -1001,5 +1001,8 @@ location:0 + + itype:0 + diff --git a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl index 21939b141f..064c8a89e1 100644 --- a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl @@ -1845,6 +1845,9 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + diff --git a/etc/zebradb/zebra-biblios-dom.cfg b/etc/zebradb/zebra-biblios-dom.cfg index a748ddd4b4..020437c7b8 100644 --- a/etc/zebradb/zebra-biblios-dom.cfg +++ b/etc/zebradb/zebra-biblios-dom.cfg @@ -28,6 +28,7 @@ iso2709.recordtype: dom.__ZEBRA_CONF_DIR__/biblios/etc/dom-config-marc.xml recordId: (bib1,Local-number) storeKeys:1 storeData:1 +facetNumRecs:1000 # Lock File Area -- 2.39.5