Skip to content

Tag Search: Partial match or wildcard support #5573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
V0idH4nter opened this issue Apr 9, 2025 · 3 comments
Open
1 task done

Tag Search: Partial match or wildcard support #5573

V0idH4nter opened this issue Apr 9, 2025 · 3 comments

Comments

@V0idH4nter
Copy link

V0idH4nter commented Apr 9, 2025

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?

  • 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 V0idH4nter changed the title Better tag filter in advanced search Improved tag filtering in advanced search Apr 9, 2025
@ssddanbrown
Copy link
Member

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 ssddanbrown changed the title Improved tag filtering in advanced search Tag Search: Partial match or wildcard support Apr 9, 2025
@ssddanbrown
Copy link
Member

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.

@V0idH4nter
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants