Summary: | Single word search terms for 'Title as phrase' searches don't limit properly | ||
---|---|---|---|
Product: | Koha | Reporter: | Sara Brown <sbrown> |
Component: | Searching | Assignee: | Bugs List <koha-bugs> |
Status: | NEW --- | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | andrew, bugzilla, Chip.Halvorsen, flyingendpaper, kkrueger, lthorrat, mspinney |
Version: | 24.11 | ||
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
Sara Brown
2025-06-25 17:40:10 UTC
QueryAutoTruncate determines whether or not Koha truncates individual words within search -- so with QueryAutoTruncate on, a search for "horse" could return "horsefly" and "horsehair." (As opposed to QueryStemming, which would allow "horse" to return "horsing" -- the need to drop the "e" when adding the "ing" makes it more than QueryAutoTruncate can handle.) The search documentation says Title As Phrase is an exact phrase search and says this about exact searches. "ext : exact search on whole subfield (does not work with icu)" You're looking for this to mean "my entire search term must match the entire title." It appears to currently behave as "my entire search term must match part of the title." I'm not sure about the technicalities here, but we'd be grateful to have a search possibility like Sara describes. That is, if I search for title as phrase with a one-word title, I'd hope to see that one-word title at the top of the search results. Or, we'd like to see an option for left-anchored searches. Bug 38694 should help here, as it will boost exact title matches within title and keyword searches. If those titles were more findable in a general search, would you still find need for a search limited to *only* full title matches? Hi Andrew, I think bug 38694 is a great functionality, and I want it, but that doesn't solve my searching issues. I think this bug and bug 6425 get at what I would like to see improved in Elastasearch. Sometimes you just need to be able to search with a left anchored index. The search that prompted Kristi's input to this yesterday was for "Cookies" but I only wanted titles that started with that word. |