Summary: | Enhance Elasticsearch author, author as phrase MARC21 index mappings | ||
---|---|---|---|
Product: | Koha | Reporter: | Aleisha Amohia <aleisha> |
Component: | Searching - Elasticsearch | Assignee: | Wainui Witika-Park <wainuiwitikapark> |
Status: | In Discussion --- | QA Contact: | Thomas Klausner <domm> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | david, dcook, domm, wainuiwitikapark |
Version: | unspecified | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | Sponsored | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Bug 36851: Enhance Elasticsearch author, author as phrase MARC21 index mappings
Bug 36851: Enhance Elasticsearch author, author as phrase MARC21 index mappings Bug 36851: Enhance Elasticsearch author, author as phrase MARC21 index mappings |
Description
Aleisha Amohia
2024-05-13 23:28:05 UTC
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> |