Expand search scope to include tags by default #1298

Closed
opened 2026-02-05 00:32:46 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @mainmachine on GitHub (Aug 7, 2019).

Easily Searchable Tags
I'd like to see tags searched for automatically when you do a search query.

Ease of Use/ Alignment with User Expectations
It's kludgey to have to wrap tags in square brackets, and I don't believe it's documented. I just found it while derping through the UI.

Originally created by @mainmachine on GitHub (Aug 7, 2019). **Easily Searchable Tags** I'd like to see tags searched for automatically when you do a search query. **Ease of Use/ Alignment with User Expectations** It's kludgey to have to wrap tags in square brackets, and I don't believe it's documented. I just found it while derping through the UI.
OVERLORD added the 🛠️ Enhancement🏭 Back-End labels 2026-02-05 00:32:46 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Aug 14, 2019):

Thanks for the suggestion,
I agree that tags should probably be included in the scope of a default search term.

A full search syntax reference can be found here.

@ssddanbrown commented on GitHub (Aug 14, 2019): Thanks for the suggestion, I agree that tags should probably be included in the scope of a default search term. [A full search syntax reference can be found here](https://www.bookstackapp.com/docs/user/searching/#advanced-search-syntax).
Author
Owner

@mainmachine commented on GitHub (Aug 15, 2019):

@ssddanbrown - Thank you for that link, that is very useful and I have added it to the bookstack based knowledge base I've been building for my company's internal use!

@mainmachine commented on GitHub (Aug 15, 2019): @ssddanbrown - Thank you for that link, that is very useful and I have added it to the bookstack based knowledge base I've been building for my company's internal use!
Author
Owner

@medvedar commented on GitHub (Aug 20, 2019):

+1

@medvedar commented on GitHub (Aug 20, 2019): +1
Author
Owner

@Wookbert commented on GitHub (Jan 31, 2021):

+1

No one is consequent enough to fully tag each and every page. However, sometimes it's necessary to add tags, cause it just doesn't fit into the page title, which could get incredibly long and cluttered.

Problem though is, that it is impossible to remember when and if the keyword one is searching for was added to the page title or instead as a tag. But: I never find myself using the search bar first, and the tag search second. (I actually just realized that the tag search field exists). Accordingly matching tags should/must be included in the search results by default.

@Wookbert commented on GitHub (Jan 31, 2021): +1 No one is consequent enough to fully tag each and every page. However, sometimes it's necessary to add tags, cause it just doesn't fit into the page title, which could get incredibly long and cluttered. Problem though is, that it is impossible to remember when and if the keyword one is searching for was added to the page title or instead as a tag. But: I never find myself using the search bar first, and the tag search second. (I actually just realized that the tag search field exists). Accordingly matching tags should/must be included in the search results by default.
Author
Owner

@ssddanbrown commented on GitHub (Nov 13, 2021):

This has now been added as part of #3043, specifically within 99587a0be6. Both the tag names and values will be parsed as terms that get indexed to be matched and scored as part of normal search terms. Tags receive a score boost compared to a standard page text term (3x for tag names, 5x for tag values). This will be part of the next feature release so will hence close this off.

Thanks again @mainmachine for the suggestion.

@ssddanbrown commented on GitHub (Nov 13, 2021): This has now been added as part of #3043, specifically within 99587a0be63556a6915ac2728d8236da2f61c288. Both the tag names and values will be parsed as terms that get indexed to be matched and scored as part of normal search terms. Tags receive a score boost compared to a standard page text term (3x for tag names, 5x for tag values). This will be part of the next feature release so will hence close this off. Thanks again @mainmachine for the suggestion.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1298