[Bug]: Search not working correctly #1553

Closed
opened 2026-02-20 02:02:51 -05:00 by deekerman · 4 comments
Owner

Originally created by @dedors on GitHub (Oct 21, 2023).

Describe the issue

When I perform a search with numbers, the results are not what I am expecting.

Search Query:
TEXT 04

Expected Results:
13 Results, episode number 040 - 049, plus 004, 104 and 204 (etc) should be listed.

Both partial and full number does not work, it needs to be at begining and include the "-"

This affects the android and the web client.

Steps to reproduce the issue

Number partially at end:
Screenshot_20231021-223508~2
Number complete at end:
Screenshot_20231021-223531~2
Number in front without -
Screenshot_20231021-223552~2

Finally what works (for one number only). Placeholder 04* - or 04? - doesn't work too.
Screenshot_20231021-223615~2
for reference, partial text does work:
Screenshot_20231021-223656~2


Additional issue: It also gives no results when alternative German Umlaut is used (ü = ue, ä = ae, ö = oe) which is sometimes used to avoid encoding issues.
It doesn't even work when there is some metadata (in the example below the autor) that uses the one I put in the search bar.

Screenshot_20231021-223924~2
Screenshot_20231021-223944~2


It would be nice to have fuzzy search (spelling error and it still gives results with lower sort priority). Maybe that could also weaken the Umlaut problem.
(Advanced search too, which was already posted https://github.com/advplyr/audiobookshelf/issues/2197 )

Audiobookshelf version

2.4.4

How are you running audiobookshelf?

Docker

Originally created by @dedors on GitHub (Oct 21, 2023). ### Describe the issue When I perform a search with numbers, the results are not what I am expecting. Search Query: TEXT 04 Expected Results: 13 Results, episode number 040 - 049, plus 004, 104 and 204 (etc) should be listed. Both partial and full number does not work, it needs to be at begining and include the "-" This affects the android and the web client. ### Steps to reproduce the issue Number partially at end: ![Screenshot_20231021-223508~2](https://github.com/advplyr/audiobookshelf/assets/17786985/7c24d6b4-88df-474b-b983-5bb6d49492e8) Number complete at end: ![Screenshot_20231021-223531~2](https://github.com/advplyr/audiobookshelf/assets/17786985/4f3411ad-637c-4ef3-bf82-d399ae6fe1ca) Number in front without `-` ![Screenshot_20231021-223552~2](https://github.com/advplyr/audiobookshelf/assets/17786985/d979c6bf-3eb7-44bf-99ad-5823cb879b20) Finally what works (for one number only). Placeholder `04* -` or `04? -` doesn't work too. ![Screenshot_20231021-223615~2](https://github.com/advplyr/audiobookshelf/assets/17786985/75726c1b-5da5-48cd-84c7-caf5a57e51f6) for reference, partial text does work: ![Screenshot_20231021-223656~2](https://github.com/advplyr/audiobookshelf/assets/17786985/1a8d4bdc-a172-4032-9a1c-cea7a21990fb) ---- Additional issue: It also gives no results when alternative German Umlaut is used (ü = ue, ä = ae, ö = oe) which is sometimes used to avoid encoding issues. It doesn't even work when there is some metadata (in the example below the autor) that uses the one I put in the search bar. ![Screenshot_20231021-223924~2](https://github.com/advplyr/audiobookshelf/assets/17786985/326ac8c4-261b-4c29-9331-f555753f3cba) ![Screenshot_20231021-223944~2](https://github.com/advplyr/audiobookshelf/assets/17786985/d215871d-5b57-47fc-8e3a-cb41a3107e35) ---- It would be nice to have fuzzy search (spelling error and it still gives results with lower sort priority). Maybe that could also weaken the Umlaut problem. (Advanced search too, which was already posted https://github.com/advplyr/audiobookshelf/issues/2197 ) ### Audiobookshelf version 2.4.4 ### How are you running audiobookshelf? Docker
deekerman 2026-02-20 02:02:51 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@advplyr commented on GitHub (Oct 21, 2023):

I'm not seeing a bug here, it seems like you are requesting a fuzzy search feature. I'll mark this as a duplicate of #1401 unless you can clarify a bug.

There is a bug with capitalization that will be fixed in the next release: https://github.com/advplyr/audiobookshelf/issues/2187

@advplyr commented on GitHub (Oct 21, 2023): I'm not seeing a bug here, it seems like you are requesting a fuzzy search feature. I'll mark this as a duplicate of #1401 unless you can clarify a bug. There is a bug with capitalization that will be fixed in the next release: https://github.com/advplyr/audiobookshelf/issues/2187
Author
Owner

@advplyr commented on GitHub (Oct 21, 2023):

Duplicate of #1401

@advplyr commented on GitHub (Oct 21, 2023): Duplicate of #1401
Author
Owner

@dedors commented on GitHub (Oct 21, 2023):

As far as I understand fuzzy search is only for misspelling? But maybe it would also solve the whole issue?

I hope this clarifies my description:

Currently, it only performs searches as if the query were enclosed in double quotation marks.
The order of words probably should not be a strict requirement, and demanding such exactness that even the use of - is necessary isn't something most people would anticipate, I believe.

Also it only searches the title, other metadata is ignored. I would assume that at least series, autor, narrator, genres, tags and year should be important too. (would fix what you see on the last 2 images)

@dedors commented on GitHub (Oct 21, 2023): As far as I understand fuzzy search is only for misspelling? But maybe it would also solve the whole issue? I hope this clarifies my description: Currently, it only performs searches as if the query were enclosed in double quotation marks. The order of words probably should not be a strict requirement, and demanding such exactness that even the use of ` - ` is necessary isn't something most people would anticipate, I believe. Also it only searches the title, other metadata is ignored. I would assume that at least series, autor, narrator, genres, tags and year should be important too. (would fix what you see on the last 2 images)
Author
Owner

@advplyr commented on GitHub (Oct 21, 2023):

Ah yes, got it. Currently the search is basic. It is looking for exact string matches (case-insensitive). What you are requesting would be handled if we implement the advanced search you mentioned in #2197. Feel free to add additional notes to that issue if it is missing something.

Also it only searches the title, other metadata is ignored. I would assume that at least series, autor, narrator, genres, tags and year should be important too. (would fix what you see on the last 2 images)

It does search all of these but they have to be exact string matches.

@advplyr commented on GitHub (Oct 21, 2023): Ah yes, got it. Currently the search is basic. It is looking for exact string matches (case-insensitive). What you are requesting would be handled if we implement the advanced search you mentioned in #2197. Feel free to add additional notes to that issue if it is missing something. > Also it only searches the title, other metadata is ignored. I would assume that at least series, autor, narrator, genres, tags and year should be important too. (would fix what you see on the last 2 images) It does search all of these but they have to be exact string matches.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/audiobookshelf#1553
No description provided.