> For the complete documentation index, see [llms.txt](https://help.notabase.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.notabase.io/advanced-search.md).

# Advanced Search

Typing in a search term in the sidebar, for the most part, works the way you expect.

However, if you want more control and flexibility over your search, you can use advanced search. This capability is offered by the search library we use (Fuse.js).

The following is adapted from [their documentation](https://fusejs.io/examples.html#extended-search). This syntax is subject to change as we make it better and more intuitive to use over time.

## How to use advanced search

White space acts as an **AND** operator, while a single pipe (`|`) character acts as an **OR** operator. To escape white space, use double quote ex. `="search query"` for exact match.

| Token     | Match type                 | Description                          |
| --------- | -------------------------- | ------------------------------------ |
| `query`   | fuzzy-match                | Items that fuzzy match `query`       |
| `=query`  | exact-match                | Items that are `query`               |
| `'query`  | include-match              | Items that include `query`           |
| `!query`  | inverse-exact-match        | Items that do not include `query`    |
| `^query`  | prefix-exact-match         | Items that start with `query`        |
| `!^query` | inverse-prefix-exact-match | Items that do not start with `query` |
| `query$`  | suffix-exact-match         | Items that end with `query`          |
| `!query$` | inverse-suffix-exact-match | Items that do not end with `query`   |

Advanced search is particularly useful when working with tags. For example, if you want to search for all blocks that have the tag `#todo` but not the tag `#done`, you can search for `#todo !#done`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.notabase.io/advanced-search.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
