[Bug]: Search fails to find known item if the query includes multiple spaces between words #1950

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

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

  1. Select search box
  2. Enter search string of known item with multiple spaces between any words
  3. Nothing found

Audiobookshelf version

2.8.0

How are you running audiobookshelf?

Docker

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 1. Select search box 2. Enter search string of known item with multiple spaces between any words 3. Nothing found ### Audiobookshelf version 2.8.0 ### How are you running audiobookshelf? Docker
deekerman 2026-02-20 02:09:30 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@advplyr commented on GitHub (May 8, 2024):

Duplicate of https://github.com/advplyr/audiobookshelf/issues/1401

@advplyr commented on GitHub (May 8, 2024): Duplicate of https://github.com/advplyr/audiobookshelf/issues/1401
Author
Owner

@DavidPesticcio commented on GitHub (May 8, 2024):

Duplicate of #1401

Not a duplicate - but the bug may be inadvertently fixed if a fuzzy search feature was implemented.

@DavidPesticcio commented on GitHub (May 8, 2024): > Duplicate of #1401 Not a duplicate - but the bug may be inadvertently fixed if a fuzzy search feature was implemented.
Author
Owner

@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.

@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.
Author
Owner

@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.

@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.
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#1950
No description provided.