Skip to content

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

Open
@dom6770

Description

@dom6770

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions