From 64c31e6f4b521e4a17c744ffe85bfa7b74ee5b7f Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Tue, 14 Oct 2014 19:13:00 -0300 Subject: [PATCH] [PASSED QA] 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 --- debian/templates/zebra-biblios-dom-site.cfg.in | 1 + etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml | 3 +++ etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl | 3 +++ etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml | 3 +++ etc/zebradb/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 88d0d6d..03a2313 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 6364ece..c7dd166 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 cd6db2a..89aefee 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 dcd9584..d2aef1a 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 21939b1..064c8a8 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 a748ddd..020437c 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 -- 1.9.1