]> git.koha-community.org Git - koha.git/commit
Bug 26832: Make Elasticsearch mappings export use UTF-8
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 27 Oct 2020 08:03:16 +0000 (09:03 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 16 Nov 2020 21:05:21 +0000 (21:05 +0000)
commit45f356ad97a84af3f28b298ac6d5f9ce17a6075e
treef929c28effc3f6f2eecf87d3bec6b2aa0c383991
parentc5d3b86019c475dad701167e519b2feec45becdb
Bug 26832: Make Elasticsearch mappings export use UTF-8

Script misc/search_tools/export_elasticsearch_mappings.pl allows to export current search engine configuration into a YAML file.
This export should use UTF-8 encoding, like other exports.

Test plan :
1) Go to Administration > Search engine configuration (Elasticsearch)
2) Edit a field label to use a diacrtic, for example local-number => Numéro
3) Save
4) Edit file etc/koha-conf.xml to enable 'elasticsearch_index_mappings'
5) Export mappings to file via misc/search_tools/export_elasticsearch_mappings.pl -t $MARCFLAVOUR
6) Reset memcached and plack
7) Back to Administration > Search engine configuration (Elasticsearch)
8) Click on 'Reset Mappings' and accept
9) Look at field 'local-number'
=> Without patch diacritic 'é' is broken
10) You may try with an emoji B-)

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 9441537e5436b43805d578108ebee0c8394eb5aa)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
misc/search_tools/export_elasticsearch_mappings.pl