[Bug 36850] New: Add volume of work $v to Elasticsearch series title MARC21 index mappings
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 Bug ID: 36850 Summary: Add volume of work $v to Elasticsearch series title MARC21 index mappings Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Searching - Elasticsearch Assignee: koha-bugs@lists.koha-community.org Reporter: aleisha@catalyst.net.nz We would like to add $v volume of work to the title-series elasticsearch index, or 'Series title' option in the advanced search dropdown. So the mappings would become as follows: * 440av * 490av * 830av -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Change sponsored?|--- |Sponsored Status|NEW |ASSIGNED -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 wainuiwitikapark@catalyst.net.nz changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wainuiwitikapark@catalyst.n | |et.nz Assignee|koha-bugs@lists.koha-commun |wainuiwitikapark@catalyst.n |ity.org |et.nz -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 --- Comment #1 from wainuiwitikapark@catalyst.net.nz --- Created attachment 167260 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167260&action=edit Bug 36850: Add volume of work $v to Elasticsearch series title MARC21 index mappings Add $v volume of work to the title-series elasticsearch index, or 'Series title' option in the advanced search dropdown. So the mappings would become as follows: 440av, 490av, 830av Sponsored-by: Educational Services Australia SCIS -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 wainuiwitikapark@catalyst.net.nz changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167260|0 |1 is obsolete| | --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 167297 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=167297&action=edit Bug 36850: Add volume of work $v to Elasticsearch series title MARC21 index mappings Add $v volume of work to the title-series elasticsearch index, or 'Series title' option in the advanced search dropdown. So the mappings would become as follows: 440av, 490av, 830av Sponsored-by: Educational Services Australia SCIS Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com --- Comment #3 from 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 to 440av, 490av, 830av: . Note: may need to edit the framework for the record to make these tags and subfields visible in the editor . 440$a 987654321 . 440$v 123456789 . 490$a (already visible in BKS framework) 741852963 . 490$v (already visible in BKS framework) 369258147 . 830$a 784951623 . 830$v 326159487 3. Do a search for the terms in subfields $a and $v using the 'Series title' index in the staff interface advanced search. ==> Result: Should get a result when the $a subfield values are used, but no result when the values in the $v subfield are used. 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 both the $a and $v subfield values are used. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 Thomas Klausner <domm@plix.at> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |domm@plix.at QA Contact| |domm@plix.at -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 Thomas Klausner <domm@plix.at> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #167297|0 |1 is obsolete| | --- Comment #4 from Thomas Klausner <domm@plix.at> --- Created attachment 169064 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169064&action=edit Bug 36850: Add volume of work $v to Elasticsearch series title MARC21 index mappings Add $v volume of work to the title-series elasticsearch index, or 'Series title' option in the advanced search dropdown. So the mappings would become as follows: 440av, 490av, 830av Sponsored-by: Educational Services Australia SCIS Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Thomas Klausner <domm@plix.at> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 Thomas Klausner <domm@plix.at> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #5 from David Cook <dcook@prosentient.com.au> --- Can you speak to this one a bit more? Is it a case where a particular search works with Zebra but not Elasticsearch? -- Looking at ./etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl it looks like 440a and 490a get indexed into Title-series:w and Title-series:p. 440a and 490a are also added to the se:0 facet. But then it also looks like the whole of 440 and 490 gets indexed into Title:w and Title-series:w. With 830 the whole things gets indexed into Title:w, Title-series:w, Title-series:p... -- If we wanted to be the most consistent between Zebra and Elasticsearch we'd probably index the whole fields into title-series, although looking at admin/searchengine/elasticsearch/mappings.yaml I'm not sure that you can define facets separately from indexes. -- I haven't loooked yet, but I'm curious if this patch changes how Series facets appear (in a negative way). -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |In Discussion --- Comment #6 from David Cook <dcook@prosentient.com.au> --- Going to move this one into discussion, as it has some unintended side effects. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 --- Comment #7 from David Cook <dcook@prosentient.com.au> --- Created attachment 169069 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169069&action=edit $v shows up as separate facet value -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 --- Comment #8 from David Cook <dcook@prosentient.com.au> --- Created attachment 169070 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=169070&action=edit title-series indexed differently to how one might expect -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 --- Comment #9 from David Cook <dcook@prosentient.com.au> --- I think the idea behind this change makes sense, as it would bring it more into line with Zebra. However, it looks like the design of "admin/searchengine/elasticsearch/mappings.yaml" prevents it from working as hoped. If you look at the screenshots above, you'll see in the example that 490$a and 490$v are indexed *separately* for the "title-series" index and the "title-series__facet" index. This has a few consequences. 1. As noted in the screenshot, it means that there is now a facet for the 490$v value of "v1". If you have a lot of 490$v values, your facets are going to be polluted quite badly. 2. For title-series, you'll get the right results when searching "Addison-Wesley professional computing series ; v1" and "Addison-Wesley professional computing series", but if you search "v1", you'll also get a lot of results. This probably isn't intended, but practically speaking it's not a big issue. In fact, it could potentially be handy. Maybe you forgot the series name, but you know the author and the fact that you want v1. So that's kind of cool actually. -- So yeah... I'd say my issue is the facets like I feared in Comment 5. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 --- Comment #10 from David Cook <dcook@prosentient.com.au> --- And actually looking through the default mappings with facets there is only 1 that has multiple subfields defined: "ln (Languages)" having "041adeij" is OK/good because they're all separate codes (rather than having meaning as one long string). There are some default mappings with facets that try to do whole MARC fields: "subject (Topics)" : 611 "subject (Topics)" : 651 That's probably not a good thing, as a lot of irrelevant subfields will end up in facets for people using 611 and 651... -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 --- Comment #11 from David Cook <dcook@prosentient.com.au> --- Anyway... like I was saying... I think this is a Koha design problem rather than a problem with this patch per se. But I think it is a blocker. I'll bring it up with people on Mattermost. I think it's an issue that has just gone unnoticed until now. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Failed QA --- Comment #12 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I am a bit hesitant about the "In dicussion", but we certainly need to find a way so that the $v is not affecting the facets. Could using a separate index for the facet be an OK way to solve this for now? Configuration of facets with Zebra was quite different, so probably can't copy from there, but need to check how we can achieve what we want with Elastic: - enable people to search for $v when using the series search option - display facets using the series title from $a only, so all volumes can be found -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 --- Comment #13 from David Cook <dcook@prosentient.com.au> --- (In reply to Katrin Fischer from comment #12)
I am a bit hesitant about the "In dicussion", but we certainly need to find a way so that the $v is not affecting the facets.
Could using a separate index for the facet be an OK way to solve this for now?
I don't know the internals well enough, but in theory I think that should work! If I understand correctly, it might look a bit funny on /cgi-bin/koha/admin/searchengine/elasticsearch/mappings.pl but it's a good idea to try -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36850 Aleisha Amohia <aleisha@catalyst.net.nz> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|wainuiwitikapark@catalyst.n |koha-bugs@lists.koha-commun |et.nz |ity.org Change sponsored?|Sponsored |--- Resolution|--- |WONTFIX Status|Failed QA |RESOLVED --- Comment #14 from Aleisha Amohia <aleisha@catalyst.net.nz> --- The sponsoring organisation has decided not to go ahead with this, so we'll move on from the bug report now. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org