From c20da6182d12a0afbb09a692e80adfede7c744d4 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 23 Jun 2022 11:40:44 +0000 Subject: [PATCH] Bug 15048: Index all possible searched subfields for index-term-genre Currently we only index a - but we can setup the system such that avxyz are searched To test: 1 - define both a 655$a *and* 655$x value in a bib, save, reindex 2 - Set system preferences: TraceSubjectSubdivisions: Include TraceCompleteSubfields: Force 3 - View the record edited above in the opac 4 - Click on the subject heading 5 - No results found 6 - Copy zebra files: sudo cp ./etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml \ /etc/koha/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml sudo cp etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl \ /etc/koha/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl 7 - restart all and reindex 8 - Click on the subject heading in OPAC 9 - Sucess! 10 - Repeat with other fields (vyz) 11 - Repeat under ES, reindexing and resetting mappings Signed-off-by: Katrin Fischer --- admin/searchengine/elasticsearch/mappings.yaml | 2 +- etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml | 2 +- etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 4f40e9b0c8..1964374e02 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -1670,7 +1670,7 @@ biblios: label: index-term-genre mappings: - facet: '' - marc_field: 655a + marc_field: 655avxyz marc_type: marc21 sort: ~ suggestible: '' 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 c405228d45..1c1daa26cf 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml @@ -789,7 +789,7 @@ Subject:p - + Index-term-genre:w Index-term-genre:p Subject:w 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 626c44c5b3..9332576a99 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl @@ -722,7 +722,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + -- 2.30.2