]> git.koha-community.org Git - koha.git/commit
Bug 25054: Display search field aliases in Search Engine Configuration
authorFridolin Somers <fridolin.somers@biblibre.com>
Thu, 12 Nov 2020 09:11:33 +0000 (10:11 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 18 Jan 2021 15:20:26 +0000 (16:20 +0100)
commit957a13595e940377cc26c9cf66257f93dbb62d1a
tree8497b40e2006b7fb3ae86e2dc083509861fbd214
parentfdcbe06271a4a8cdea0b26d94eca53b32fd19020
Bug 25054: Display search field aliases in Search Engine Configuration

It'd be great if the Search Engine Configuration page would display
the various aliases (shortcuts) available : ti for title, sn for local-number, etc.

Patch changes Koha/SearchEngine/Elasticsearch/QueryBuilder.pm to move
hard-coded vars at the beging and adds a method to provide to %index_field_convert via a method.

Test plan :
1) Use Elasticsearch
2) Go to Administration > Search engine configuration (Elasticsearch)
3) Check you see new column 'Aliases' with for example ti for title.
4) Perform a search 'ti:<title>' and check you get results

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit fd8aee927005f27fb10ed8944afbbd318e610dfb)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
admin/searchengine/elasticsearch/mappings.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt