BookStack icon indicating copy to clipboard operation
BookStack copied to clipboard

Tag Search: Partial match or wildcard support

Open V0idH4nter opened this issue 8 months ago • 3 comments

Describe the feature you'd like

In the advanced search functionality, when searching by tag, BookStack currently does not suggest or autocomplete existing tags. Additionally, the search only returns results if the exact tag name is typed. This presents usability issues for users who may not remember the precise tag or are looking for related tags.

I propose the following improvements:

  • Partial Match Support / Regex Search: Enable support for partial matches or wildcard/regex-based tag search. For example, searching for install* should return tags like installation or install-plugin.

Describe the benefits this would bring to existing BookStack users

These improvements would significantly enhance the search experience. Users no longer need to remember or guess the exact tag names. As the knowledge base grows, the feature scales well with more tags and users contributing content.

Can the goal of this request already be achieved via other means?

No. Exact tag matches are required, and there is no workaround for partial or wildcard searches.

Have you searched for an existing open/closed issue?

  • [x] I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?

Under 3 months

Additional context

No response

V0idH4nter avatar Apr 09 '25 07:04 V0idH4nter

Thanks for the suggestions @V0idH4nter. Tag search suggestions are already open under #2829 and #3565, so I'll update this to focus on the partial match part.

ssddanbrown avatar Apr 09 '25 11:04 ssddanbrown

Users no longer need to remember or guess the exact tag names.

Just as an existing partial alternative for that, users could use the /tags view then start a search from there by clicking on the desired tag.

ssddanbrown avatar Apr 09 '25 11:04 ssddanbrown

You could just change the '=' to 'like' in SearchRunner.php line 315 and 320. That will enable partial match.

V0idH4nter avatar Apr 15 '25 14:04 V0idH4nter