Summary: | Elasticsearch - Advanced search limit by shelving location is not converted to correct index | ||
---|---|---|---|
Product: | Koha | Reporter: | Myka Kennedy Stephens <mkstephens> |
Component: | Searching - Elasticsearch | Assignee: | Nick Clemens (kidclamp) <nick> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | major | ||
Priority: | P5 - low | CC: | marjorie.barry-vila, nick |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22426 | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Bug 24109: Map 'loc' to 'location' whne building ES queries
Bug 24109: Map 'loc' to 'location' whne building ES queries |
Description
Myka Kennedy Stephens
2019-11-26 02:18:49 UTC
Created attachment 96623 [details] [review] Bug 24109: Map 'loc' to 'location' whne building ES queries When building the query we start with mc-loc - then we strip the mc, convert the field, and restore mc- to indicate the searches should be ORed together. We have a mapping for mc-loc to location, but we strip the mc for converting For all other mc indexes there is no issue as they don't need to be mapped (they are the same minus the mc) To test: 0 - Be using Elasticsearch and have AdvancedSearchTypes set to include loc 1 - Perform an advanced search for two shelving locations that have items in the catalog 2 - Note no restuls 3 - Apply patch 4 - Restart all the things 5 - Repeat search 6 - You get results! Created attachment 96628 [details] [review] Bug 24109: Map 'loc' to 'location' whne building ES queries When building the query we start with mc-loc - then we strip the mc, convert the field, and restore mc- to indicate the searches should be ORed together. We have a mapping for mc-loc to location, but we strip the mc for converting For all other mc indexes there is no issue as they don't need to be mapped (they are the same minus the mc) To test: 0 - Be using Elasticsearch and have AdvancedSearchTypes set to include loc 1 - Perform an advanced search for two shelving locations that have items in the catalog 2 - Note no restuls 3 - Apply patch 4 - Restart all the things 5 - Repeat search 6 - You get results! Signed-off-by: Myka Kennedy Stephens <mkstephens@lancasterseminary.edu> Patch works as expected. Thank you! |