mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-02 22:46:55 -05:00
[Bug]: Search fails to find known item if the query includes multiple spaces between words #1777
Labels
No labels
authentication
awaiting release
backlog
bug
chapter editor
config-issue
ebooks
encoding/embedding
enhancement
help wanted
listening sessions & progress
planned
possible plugin
progress sync
sorting/filtering/searching
unable to reproduce
upload
users & permissions
waiting
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/audiobookshelf-advplyr#1777
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DavidPesticcio on GitHub (Feb 28, 2024).
Describe the issue
If the search string contains multiple spaces, between words, the search will fail to find a known item.
Multiple spaces at the beginning or end of the search string do not effect search results.
Steps to reproduce the issue
Audiobookshelf version
2.8.0
How are you running audiobookshelf?
Docker
@advplyr commented on GitHub (May 8, 2024):
Duplicate of https://github.com/advplyr/audiobookshelf/issues/1401
@DavidPesticcio commented on GitHub (May 8, 2024):
Not a duplicate - but the bug may be inadvertently fixed if a fuzzy search feature was implemented.
@advplyr commented on GitHub (May 8, 2024):
It's not a bug. The search was built very basic to search full text strings. If I had built the search to be a fuzzy search and remove multiple spaces and it didn't work then it would be a bug.
@DavidPesticcio commented on GitHub (May 19, 2024):
IMHO, ignoring multiple white-space and trimming white-space when performing searches is de facto - not exclusive to fuzzy matching.