Bug 22229 - Elasticsearch - fields do not have aliases - Koha should always use the common term internally
Summary: Elasticsearch - fields do not have aliases - Koha should always use the commo...
Status: RESOLVED DUPLICATE of bug 19575
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Elasticsearch (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-29 16:38 UTC by Nick Clemens (kidclamp)
Modified: 2019-02-14 16:59 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2019-01-29 16:38:35 UTC
This problem was discovered in the advanced search - when limiting by shelving location the search is composed as 
limit=mc-loc:{term}

this fails in ES because the index is setup as 'location'

What works in both is:
limit=location:{term} 

We either need to build field aliases into ES (https://www.elastic.co/guide/en/elasticsearch/reference/master/alias.html)

Or make sure to use consistent names across Koha
Comment 1 Katrin Fischer 2019-01-29 20:34:36 UTC
Would this be solved by bug 19575?
Comment 2 Nick Clemens (kidclamp) 2019-02-14 16:59:05 UTC

*** This bug has been marked as a duplicate of bug 19575 ***