| Summary: | Filtering by Library returns incorrect results | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Daphne Hoolahan <dch> |
| Component: | Searching - Zebra | Assignee: | Bugs List <koha-bugs> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | major | ||
| Priority: | P2 | CC: | bc, jonathan.druart |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Crowdfunding committed: | 0 |
| Crowdfunding contact: | Patch complexity: | --- | |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
| Attachments: | Bug 20099: Try exact search for facets | ||
|
Description
Daphne Hoolahan
2018-01-30 10:37:52 UTC
I have just tested quickly, I have a branchcode "CPL", I search for "d" and use the CPL facet. I get 240 results and the url is http://pro.kohadev.org/cgi-bin/koha/catalogue/search.pl?idx=kw&q=d&sort_by=relevance_dsc&limit=holdingbranch:CPL If I replace CPL with CP, I get the "no result" page Do you recreate this issue on a sandbox? I think the issue is the underscore. My guess is that Zebra treats it as a space, so you end up with Zebra treating AB_D and AB_C as 2 words. When doing a keyword search or limit on AB it will then naturally return the records from all branches with the 'word' AB. My normal advice is: never use spaces or underscores or - in your codes (library, itemtype, locatio, collection, ...) in Koha, because of how Zebra will treat them. Sometimes you might want that behaviour, but other times it's really not helpful. This is Zebra only (works ok with elastic) Created attachment 96185 [details] [review] Bug 20099: Try exact search for facets So this patch does not work as "ext" is not supported if ICU is enabled. The only thing is then to either use elastic, or modify the branchcodes :) |