Bugzilla – Attachment 151180 Details for
Bug 26472
Elasticsearch - ES - Authority record results not ordered correctly due to punctuation marks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26472: Configure Elasticsearch for better alphabetic sorting
Bug-26472-Configure-Elasticsearch-for-better-alpha.patch (text/plain), 1.79 KB, created by
Victor Grousset/tuxayo
on 2023-05-15 00:48:10 UTC
(
hide
)
Description:
Bug 26472: Configure Elasticsearch for better alphabetic sorting
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2023-05-15 00:48:10 UTC
Size:
1.79 KB
patch
obsolete
>From c0fe976615049c99aa62d360d8f2d5ef71ca5f5b Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Tue, 9 May 2023 03:59:57 +0000 >Subject: [PATCH] Bug 26472: Configure Elasticsearch for better alphabetic > sorting > >This enhancement configures the ICU collation keyword plugin used by Elasticsearch for sorting to better handle punctuation and whitespace in sort fields. > >Details at: https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-icu-collation-keyword-field.html > >To test: > >1. Create three authority records with the following values: > >150 $a Science. >150 $a Science $v B. >150 $a Science $v C. > >2. Search for your authority records with "Science" in "Heading A-Z" order > >The search results will likely be in this order: > > 1. Science B. > 2. Science C. > 3. Science. > >This is an unexpected order > >3. Apply the patch and reindex > >sudo koha-elasticsearch --rebuild -r <instancename> > >4. Search for your authority records again with "Science" in "Heading A-Z" order > >Confirm your search results show in the correct order. > > 1. Science. > 2. Science B. > 3. Science C. > >Sponsored-by: Education Services Australia SCIS >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > admin/searchengine/elasticsearch/field_config.yaml | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/admin/searchengine/elasticsearch/field_config.yaml b/admin/searchengine/elasticsearch/field_config.yaml >index c87cbcae8d..dc57d644a7 100644 >--- a/admin/searchengine/elasticsearch/field_config.yaml >+++ b/admin/searchengine/elasticsearch/field_config.yaml >@@ -74,6 +74,7 @@ sort: > type: icu_collation_keyword > index: false > numeric: true >+ alternate: shifted > cn_sort: > type: icu_collation_keyword > index: false >-- >2.40.1
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 26472
:
150820
|
150899
|
150914
|
151180
|
151421
|
151471
|
152608
|
152646
|
173268