Bug 26508

Summary: "sn:" shortcut to search by biblionumber is too broad
Product: Koha Reporter: Andrew Fuerste-Henry <andrew>
Component: Searching - ElasticsearchAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

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