Bugzilla – Attachment 112546 Details for
Bug 26832
Elasticsearch mappings export should use UTF-8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26832: Make Elasticsearch mappings export use UTF-8
Bug-26832-Make-Elasticsearch-mappings-export-use-U.patch (text/plain), 1.66 KB, created by
Fridolin Somers
on 2020-10-27 08:15:39 UTC
(
hide
)
Description:
Bug 26832: Make Elasticsearch mappings export use UTF-8
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2020-10-27 08:15:39 UTC
Size:
1.66 KB
patch
obsolete
>From 38089466577bfb4a70c11a6b245a6cd29e4ec352 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 27 Oct 2020 09:03:16 +0100 >Subject: [PATCH] Bug 26832: Make Elasticsearch mappings export use UTF-8 >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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-) >--- > misc/search_tools/export_elasticsearch_mappings.pl | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/misc/search_tools/export_elasticsearch_mappings.pl b/misc/search_tools/export_elasticsearch_mappings.pl >index 9fd6d78bc0..5d3f49c828 100755 >--- a/misc/search_tools/export_elasticsearch_mappings.pl >+++ b/misc/search_tools/export_elasticsearch_mappings.pl >@@ -80,4 +80,5 @@ if ( $type && $type !~ /^(marc21|unimarc|normarc)$/ ) { > > my $mappings = Koha::SearchEngine::Elasticsearch::raw_elasticsearch_mappings( $type ); > >+binmode STDOUT, ":encoding(UTF-8)"; > print Dump($mappings); >-- >2.29.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26832
:
112546
|
112813
|
112899