Anyone have a way to exclude tags from search? I am only looking to get results for pages and blocks as they are more specific and by getting tags is it really cluttered. I know pages and tags are both the same asset but would love to separate for search Thanks
The short answer is no. But if you provide a specific example, I don’t exclude a hack.
I have tags and pages both using the term mindset. The pages are most specific and the tags are both single words
#mindset and nested mindset/daily practice or mindset/shadow work. I am trying to avoid having both come up during search. If I want to search tags I can use the tags plugin so don’t need tags to populate general search for pages. Thank you
You need to get much more specific:
How does a human differentiate between tag mindset and page mindset?
Like the tags plugin?
What kind of search do you perform?
If you have general search needs, try the plugin Smart Search, it has a much simpler syntax for searching. Excluding a tag for example, can be achieved via
#!mytag syntax. More info:
This file has been truncated.
[中文](README.md) | English
Triggers an input that helps you search various types of data. You can also display one on the right sidebar.
## Feature Highlights
- While editing, use the default shortcut key `ctrl+space` to call it out. You can change it in settings.
- `esc` to close the input.
- Search by tag. Format `#tag`, `##tag` to also include it's descendants and `#>tag` to also include it's immediate children.
- Search for blocks not containing the specified tag, used in combinations, see below. Format `#!tag`.
- Completion of tag names is supported, just type part of the tag.
- `>tag` for a candidate tag list that refers to `tag` to be use further in the query.
- Search by property existence. Format `@property`.
- Search by property non-existence. Format `@!property`.
- Search by property value, can also work with partial value. Format `@property: value`.
- Search blocks without a specified property-value. Format `@!property: value`.
- Search by property value of number type. Format `@property >value`, supported operators are `>` `<` `=` `<=` `>=`.
- Search by property value of date type. Format `@property~ -1w~d`, supported units are `d` `w` `m` `y`, meaning "days", "weeks", "months" and "years"; The range represented by a `~` is optional. Absolute dates in the format `yyyyMMdd` is also supported, e.g, `20230131~d`.
Thank you this is great!!