Bug 29919 - Elasticsearch missing alias pl for place-of-publication
Summary: Elasticsearch missing alias pl for place-of-publication
Status: CLOSED INVALID
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Elasticsearch (show other bugs)
Version: Main
Hardware: All All
: P5 - low major (vote)
Assignee: Fridolin Somers
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-21 06:55 UTC by Fridolin Somers
Modified: 2023-06-08 22:26 UTC (History)
1 user (show)

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


Attachments
Bug 29919: Elasticsearch add alias pl for place-of-publication (1.24 KB, patch)
2022-01-21 07:06 UTC, Fridolin Somers
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Fridolin Somers 2022-01-21 06:55:24 UTC
Elasticsearch is missing alias "pl" for "place-of-publication".
Advanced search uses directly this alias.
Currently only working with Zebra.
Comment 1 Fridolin Somers 2022-01-21 07:06:57 UTC
Created attachment 129681 [details] [review]
Bug 29919: Elasticsearch add alias pl for place-of-publication

Elasticsearch is missing alias "pl" for "place-of-publication".
Advanced search uses directly this alias.
Currently only working with Zebra.

Test plan :
1) Use search engine Elasticsearch
2) Catalog some records with a place of publication
3) From advanced search, perform a search on "Publisher location"
4) Check you see the alias in search engine configuration
Comment 2 Victor Grousset/tuxayo 2022-03-30 12:59:29 UTC
pl is currently not an alias. It's used as a field name.
Comment 3 Fridolin Somers 2022-07-01 09:10:51 UTC
Ahhhh indeed.
Search field name is 'pl' in search engine config (also with Zebra) and in TT.

So we have to rename in our ES config.
I've seen 'place-of-publication' only once in code :

DBRev 18.12.00.018 :
  $dbh->do( "UPDATE `search_field` SET `name` = 'place-of-publication', `label` = 'place-of-publication' WHERE `name` = 'place'" );

But this search field does not exist in mappings.yaml