Bug 22229

Summary: Elasticsearch - fields do not have aliases - Koha should always use the common term internally
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Searching - ElasticsearchAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P5 - low CC: ere.maijala
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19575
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

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 ***