[Koha-bugs] [Bug 30817] New: Make build_authorities_query takes QueryAutoTruncate system preference into account

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 20 10:25:43 CEST 2022


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

            Bug ID: 30817
           Summary: Make build_authorities_query takes QueryAutoTruncate
                    system preference into account
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Searching - Elasticsearch
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: alex.arnaud at biblibre.com

Currently authorities search (contains) queries are always truncated using
SearchEngine::Elasticsearch::QueryBuilder::_truncate_terms.

Truncating queries could have some negative effects on search results (i.e
relevance). An interesting test plan could be:

  - Enable Elasticsearch search engine,
  - make sure you have some authorities with the following heading-main
content:
    "jean-Charles", "Jean", "Charles", "Jean Foo", "Foo Jean", "Jean Charles"
  - launch the following search: Main heading contains "jean-Charles" sort by
"none"
  - Authority with heading-main "jean-Charles" should have the highest
relevance score. But this is not the case. The score seems to be altered by the
wildcard.

Patch is coming.

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


More information about the Koha-bugs mailing list