Bug 28381: Elasticsearch - Add 710 and 711 to default mappings for author index ...
authorCaroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Tue, 18 May 2021 21:12:34 +0000 (17:12 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 16 Aug 2021 07:56:45 +0000 (09:56 +0200)
This patch adds fields 710$a and 711$a to the default author mappings for elasticsearch indexing.

To test:
1) Apply patch
2) Reindex using rebuild_elasticsearch.pl -r

If you don't have access to a terminal (in a sandbox for example)
2a) Go to Administration > Search engine configuration, click "Reset mappings"
and confirm
2b) Then reindex

3) Search for an author name found only in 710 using the Author index
in advanced search
4) Repeat search for an author name in 711

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
admin/searchengine/elasticsearch/mappings.yaml

index 1e0fa8a..8e13d23 100644 (file)
@@ -1196,6 +1196,16 @@ biblios:
         sort: ~
         suggestible: 1
       - facet: 1
+        marc_field: 710a
+        marc_type: marc21
+        sort: ~
+        suggestible: 1
+      - facet: 1
+        marc_field: 711a
+        marc_type: marc21
+        sort: ~
+        suggestible: 1
+      - facet: 1
         marc_field: 200f
         marc_type: unimarc
         sort: ~