[Koha-bugs] [Bug 33842] New: Search for authid not returning right results with QueryAutoTruncate ON

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 26 09:48:17 CEST 2023


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

            Bug ID: 33842
           Summary: Search for authid not returning right results with
                    QueryAutoTruncate ON
 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: adolfo.rodriguez at xercode.es

Conditions to replicate this bug:
1) Preference QueryAutoTruncate activated
2) Have authorities with low authids
3) ElasticSearch, though it should also happen with Zebra.

You can try it on this demo, it's on the master branch.
Intranet: https://intranet.koha-community.es
OPAC: https://catalog.koha-community.es/
User demo/demo

The following searchs return different results:
1) Search in the catalog an:1 The QueryAutoTruncate adds * so it returns all
the biblios that use authorities with authids that begin with 1, which are 81.
That doesn't make sense as those authorities have nothing in common.
https://intranet.koha-community.es/cgi-bin/koha/catalogue/search.pl?q=an%3A1

2) The authority with the id 1 is Mika Ninagawa, if you search her in the
Authorities module, it says the authority is being used in two records, which
is correct.
https://intranet.koha-community.es/cgi-bin/koha/authorities/authorities-home.pl?op=do_search&type=intranet&marclist=mainmainentry&and_or=and&excluding=&value=mika&authtypecode=&operator=contains&orderby=HeadingAsc

3) In the authority detail, Koha makes the same query as in point 1 so it
appears it's being used in 81 records.
https://intranet.koha-community.es/cgi-bin/koha/authorities/detail.pl?authid=1

I think this disparity in results can be confusing for librarians and readers,
as they won't understand why Koha is recovering records that are unrelated to
the author/subject...

-- 
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