[Koha-bugs] [Bug 26472] Elasticsearch - ES - Authority record results not ordered correctly due to punctuation marks

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 15 02:48:10 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26472

Victor Grousset/tuxayo <victor at tuxayo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #150914|0                           |1
        is obsolete|                            |

--- Comment #16 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Created attachment 151180
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=151180&action=edit
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 at davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list