We would like to add the following tags and subfields to the existing author index for Elasticsearch MARC21, as used by the "author" and "author as phrase" advanced search dropdown options: * 100abc (currently 100a) * 700abc (currently 700a) * 250b (currently not mapped) * 800abc (currently not mapped) * 810ab (currently not mapped) Explanation to justify these mappings: * To search main/added entry personal name (100/700) for numeration ($b), titles and words associated with a name ($c). e.g. 100 $a John Paul $b II $c Pope. e.g. 700 $a John Paul $b II $c Pope. To search edition statement (250), statement of responsibility ($b). e.g. 250 $a Fourth edition / $b revised by J.G. Le Mesurier. To search series added entry, personal name (800 $a), numeration ($b), and titles and words associated with a name ($c). e.g. 800 $a Mackall, Dandi Daley. To search series added entry, corporate name (810 $a) and subordinate unit ($b). e.g.810 $a United States $b Army Map Service.
Created attachment 167250 [details] [review] Bug 36851: Enhance Elasticsearch author, author as phrase MARC21 index mappings Add the following tags and subfields to the existing author index for Elasticsearch MARC21, as used by the "author" and "author as phrase" advanced search dropdown options: 100abc (currently 100a), 700abc (currently 700a), 250b, 800abc, 810ab Sponsored-by: Educational Services Australia SCIS
Created attachment 167298 [details] [review] Bug 36851: Enhance Elasticsearch author, author as phrase MARC21 index mappings Add the following tags and subfields to the existing author index for Elasticsearch MARC21, as used by the "author" and "author as phrase" advanced search dropdown options: 100abc (currently 100a), 700abc (currently 700a), 250b, 800abc, 810ab Sponsored-by: Educational Services Australia SCIS Signed-off-by: David Nind <david@davidnind.com>
Testing notes using KTD: 1. Start up KTD with Elasticsearch: ktd --es8 up 2. Edit a record and add unique values as follows (I edited Programming Perl, 262): . 100 $a John Paul $b IV $c Pope . 700 $a Divad $b 10 $c Photographer . 250 $b revised by J.G. Le Mesurier. . 800* $a Mackall, Dandi Daley. $b XIX $c Prince . 810* $a New Zealand $b Department of Conservation. * Need to edit BKS framework to make these subfields visible in the editor for KTD) Mappings after and before patch: * 100abc (currently 100a) * 700abc (currently 700a) * 250b (currently not mapped) * 800abc (currently not mapped) * 810ab (currently not mapped) 3. Do a search for the terms in each subfield using the 'Author' and 'Author as a phrase' indexes in the staff interface advanced search. ==> Result: Should get a result when using values in the subfields that are mapped, but no result where the subfields are not mapped. 4. Apply this patch and restart all services (restart_all). 5. Reset the mappings: Administration > Catalog > Search engine configuration (Elasticsearch) > Reset mappings (at the bottom of the page) 6. Reindex: koha-elasticsearch --rebuild -d -b -a kohadev 7. Alternative to steps 5 and 6: reset_all then repeat step 2 8. Repeat step 3 ==> Result: Should now get a result when using values in the subfields that are now mapped (and that weren't previously).
Created attachment 169068 [details] [review] Bug 36851: Enhance Elasticsearch author, author as phrase MARC21 index mappings Add the following tags and subfields to the existing author index for Elasticsearch MARC21, as used by the "author" and "author as phrase" advanced search dropdown options: 100abc (currently 100a), 700abc (currently 700a), 250b, 800abc, 810ab Sponsored-by: Educational Services Australia SCIS Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Thomas Klausner <domm@plix.at>
Same issue as bug 36850