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 <tomascohen@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Tomas Cohen Arazi 2014-10-14 19:13:00 -03:00
parent 1d28da41fb
commit ccf7ae56f6
6 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -1322,5 +1322,8 @@
<facet tag="952" subfields="c">
<target_index>location:0</target_index>
</facet>
<facet tag="952" subfields="y">
<target_index>itype:0</target_index>
</facet>
</kohaidx:index_defs>

View File

@ -2420,6 +2420,9 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
<z:index name="location:0">
<xslo:value-of select="marc:subfield[@code='c']"/>
</z:index>
<z:index name="itype:0">
<xslo:value-of select="marc:subfield[@code='y']"/>
</z:index>
</xslo:if>
</xslo:template>
<xslo:template mode="index_all" match="text()">

View File

@ -1001,5 +1001,8 @@
<facet tag="952" subfields="c">
<target_index>location:0</target_index>
</facet>
<facet tag="952" subfields="y">
<target_index>itype:0</target_index>
</facet>
</kohaidx:index_defs>

View File

@ -1845,6 +1845,9 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
<z:index name="location:0">
<xslo:value-of select="marc:subfield[@code='c']"/>
</z:index>
<z:index name="itype:0">
<xslo:value-of select="marc:subfield[@code='y']"/>
</z:index>
</xslo:if>
</xslo:template>
<xslo:template mode="index_all" match="text()">

View File

@ -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