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

# Advanced search

Explore Advanced search on your LII site

{% embed url="<https://youtu.be/nJCgGEPMHxc>" %}

Advanced search techniques allow you to narrow down your results and find exactly what you seek.

1. Click **Advanced Search** on your site

<div align="left"><figure><img src="https://2636209214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQTRbq0W6hTpdOKxdYwIV%2Fuploads%2Fgit-blob-6357ade01112bd9ffe62b0b2f11d818f4e43e249%2Ftanzlii--Law%20Lib%207.png?alt=media" alt=""><figcaption></figcaption></figure></div>

2. Under the advanced search page, type the words you are searching for in the search box.

<div align="left" data-full-width="false"><figure><img src="https://2636209214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQTRbq0W6hTpdOKxdYwIV%2Fuploads%2Fgit-blob-c561fa6b082765498a304a3ee8a7bb85e1caa095%2Ftanzlii--Law%20Lib%208.png?alt=media" alt=""><figcaption></figcaption></figure></div>

3. Click on the dropdown menu labeled "**In these fields**"
4. Select the relevant fields where you want the search to focus. You can choose multiple fields if needed.

<figure><img src="https://2636209214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQTRbq0W6hTpdOKxdYwIV%2Fuploads%2Fgit-blob-34f96596d18ec80a94f88ca782e95db9c388ac4b%2Ftanzlii--Law%20Lib%209.png?alt=media" alt=""><figcaption></figcaption></figure>

5. Check the box labeled "**Exact phrase**" next to each keyword or phrase to limit the search to exact matches within the selected fields.
6. Refine your search using **("AND," "OR," "NOT")**

* **AND**: To include all specified keywords.
* **OR**: To include any of the specified keywords.
* **NOT**: To exclude specific keywords.

Use the subsequent text boxes and dropdowns to select the appropriate fields. Ensure you check "**Exact phrase**" where necessary

<div align="left"><figure><img src="https://2636209214-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQTRbq0W6hTpdOKxdYwIV%2Fuploads%2Fgit-blob-1e2db3c3d551797a96a2085f5cc7fbfe62c04af4%2Ftanzlii--Law%20Lib%2010.png?alt=media" alt=""><figcaption></figcaption></figure></div>

7. Filter results by date to refine your results further by entering the start and end dates in the "**Date from**" and "**Date to**" fields.
8. Click the "**Search**" button to initiate the search.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.tanzlii.org/finding-information/advanced-search.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
