mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-03-02 22:46:55 -05:00
[Bug]: search results inconsistent for titles with apostrophes #3190
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#3190
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 @andrew-hill on GitHub (Jan 18, 2026).
What happened?
When searching for books with apostrophes in their titles (Magician's, Assassin's, World's, etc) I get inconsistent results, and it's often hard to find a book because of this (if other words in the title are generic).
Some examples from my library:
Note that some of the apostrophes in title/metadata are U+0027 (apostrophe) and some are U+2019 (right single quotation mark). You have to use the exact one in your search string to match a result, since the search only factors in case sensitivity. This makes it hard to find any results with U+2019 in their name, unless they happen to use U+0027 elsewhere in the metadata (e.g. series name or description). All metadata in titles above is from Audible, which uses a mix of the two characters to represent apostrophes on different books.
An additional complication for finding said books: searching for "World" alone or "Worst" alone gives many other results, reaching the limit of 12 results in the web UI without returning any of the above wanted matches.
What did you expect to happen?
I'd expect to find all of the "world's worst" books when searching for "world's worst", regardless of which type of apostrophe the metadata source has used. Similarly any of the "Assassin's" books regardless of which character is used for the apostrophe in the title.
I can imagine this could be achieved (from simplest/worst to hardest/best):
worldsandworld'sandworld`sandWorld’sall match all variants of each other, but perhaps also unwanted matches likeworld-sorworld@s.'=`=’), and presumably other punctuation equivalences could be added (-=–=—)Steps to reproduce the issue
Audiobookshelf version
v2.32.1
How are you running audiobookshelf?
Docker
What OS is your Audiobookshelf server hosted from?
Linux
If the issue is being seen in the UI, what browsers are you seeing the problem on?
Chrome
Logs
Additional Notes
As best I can tell, the fuzzy matching described in #2186 and #2099 are not in the current release.