Bug 26508 - "sn:" shortcut to search by biblionumber is too broad
Summary: "sn:" shortcut to search by biblionumber is too broad
Status: RESOLVED DUPLICATE of bug 32707
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Elasticsearch (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-22 14:06 UTC by Andrew Fuerste-Henry
Modified: 2023-12-10 08:55 UTC (History)
0 users

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2020-09-22 14:06:42 UTC
Searching for "sn:1" seems to be returning every bib with a 1 in its bib number. "sn:100" only returns bib 100.

Turned on DumpSearchQueryTemplate and pulled this from the source when searching "sn:1":
'query' => '(local-number:1*)',
        'default_operator' => 'AND',
        'lenient' => $VAR1->{'search_query'}{'query'}{'query_string'}{'analyze_wildcard'}
      }
    },
Comment 1 Andrew Fuerste-Henry 2020-09-22 14:13:16 UTC
If I change SearchEngine back to Zebra, with QueryAutoTruncate set to "automatically," it somehow knows not to truncate this search.
Comment 2 Katrin Fischer 2020-09-29 19:19:08 UTC
Hm, so the problem is that it should not truncate with Zebra?

In what context are we using sn for searching biblionumbers instead of biblionumber?
Comment 3 Katrin Fischer 2023-12-10 08:55:40 UTC

*** This bug has been marked as a duplicate of bug 32707 ***