Bug 28339

Summary: Elasticsearch - Add 8XX to default title-series index mappings (MARC21)
Product: Koha Reporter: Caroline Cyr La Rose <caroline.cyr-la-rose>
Component: Searching - ElasticsearchAssignee: Caroline Cyr La Rose <caroline.cyr-la-rose>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P5 - low CC: david
Version: master   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24678
Change sponsored?: --- Patch complexity: Small patch
Text to go in the release notes:
This enhancement adds the 8XX (800$t, 810$t, 811$t, and 830$a) subfields to the default title-series index mappings for Elasticsearch. Currently for MARC21 only 440$a and 490$a are included.
Version(s) released in:
21.11.00
Attachments: Bug 28339: Elasticsearch - Add 8XX to default title-series index mappings (MARC21)
Bug 28339: Elasticsearch - Add 8XX to default title-series index mappings (MARC21)
Bug 28339: Elasticsearch - Add 8XX to default title-series index mappings (MARC21)

Description Caroline Cyr La Rose 2021-05-12 21:05:52 UTC
Right now, the default mappings for title-series in MARC21 only include 440$a and 490$a.

I propose we add 8XX (800$t, 810$t, 811$t, 830$a) which are series added entries.

I don't think it is good practice to have a record with only a 8XX and no 490, but I've seen it happen enough that it has been a problem in our searches.
Comment 1 Caroline Cyr La Rose 2021-05-18 19:56:18 UTC
Created attachment 121125 [details] [review]
Bug 28339: Elasticsearch - Add 8XX to default title-series index mappings (MARC21)

This patch adds series added entries titles (800 $t, 810 $t, 811 $t, and 830 $a) in the 
default title-series index mappings.

To test:

1) Apply patch
2) Reindex using rebuildelasticsearch.pl -r

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

3) Search for a series title found only in and added entry field

https://bugs.koha-community.org/show_bug.cgi?id=23853
Comment 2 David Nind 2021-08-06 10:48:47 UTC
Created attachment 123566 [details] [review]
Bug 28339: Elasticsearch - Add 8XX to default title-series index mappings (MARC21)

https://bugs.koha-community.org/show_bug.cgi?id=23853

Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2021-08-06 10:50:00 UTC
Something has gone a bit weird with the patch bug text!
Comment 4 Katrin Fischer 2021-08-10 11:46:20 UTC
Created attachment 123677 [details] [review]
Bug 28339: Elasticsearch - Add 8XX to default title-series index mappings (MARC21)

This patch adds series added entries titles (800 $t, 810 $t, 811 $t, and 830 $a) in the
default title-series index mappings.

To test:

1) Apply patch
2) Reindex using rebuildelasticsearch.pl -r

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

3) Search for a series title found only in and added entry field

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 5 Jonathan Druart 2021-08-16 10:04:39 UTC
Pushed to master for 21.11, thanks to everybody involved!