BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Normal search only finds exact matches, quoted search finds substrings (reversed behaviour?)

Open dom6770 opened this issue 7 months ago • 0 comments

Describe the Bug

When using the search in BookStack, the normal (unquoted) search only returns exact matches, while quoted search returns substring matches. For example, searching for wallet (without quotes) returns only one exact match, but searching for "wallet" (with quotes) returns multiple results including substrings like "kwalletd". This seems reversed compared to usual search behavior and user expectations?

Steps to Reproduce

  1. Enter a search term (e.g., wallet) without quotes in the BookStack search field.
  2. Now search for the same term with quotes ("wallet").
  3. Note that this search now returns additional results that contain the search term as a substring (e.g., “kwalletd”, “wallets” etc).

Expected Behaviour

Opposite.

Searching with quotes should only return exact matches. Unquoted searches should find all entries containing the search term as a substring

Screenshots or Additional Context

No response

Browser Details

Firefox 139 on Windows 11

Exact BookStack Version

v25.02.2 (Docker)

dom6770 avatar Jun 04 '25 13:06 dom6770