# Search pane

In the search tab, you can search for files. While the interface can be used in a very straightforward manner, it actually contains quite a lot of power.

## Searching using keywords

When you first arrive at the search pane, it will invite you to search using keywords:

<figure><img src="/files/f4GXmOALy6Precx384qv" alt=""><figcaption></figcaption></figure>

For example, you could look for files containing the word `affiliate` by simply entering that word in the *content* box. Clause9 will then not only retrieve files that contain that exact word — in the file name, or in the clause title or clause body — but also:

* Files that have **differently capitalised versions of that word** — e.g. searching for `house` will also find files that contain the word `House` or `HOUSE`.
* Files that have **unaccented versions** of that word — e.g., searching for `repeter` in French will also find files that contain `répéter`, and vice versa.
* Files that contain **synonyms** **of #concepts**. For example, if you have a concept `#vendor` and have assigned it the concept labels *vendor*, *supplier*, *seller* and *retailer* in English, then searching for any of these words will return clauses that contain the concept `#vendor`.
* Files that contain **alternative forms of that word**, depending on the language. For example, when searching for `affiliates` in English, or `contrats` in French, the platform will also find files using the singular versions `affiliate` and `contract`, respectively.

{% hint style="info" %}
Do not overly rely on the alternative word forms search, as its effectiveness strongly depends on the language and the keyword considered. These word variations are generated automatically by algorithms that, despite their advanced nature, will often be incorrect.

As is typically the case for these algorithms, English will work much better than other languages.
{% endhint %}

### Using multiple keywords

When you use a keyword that is used in many different clauses — e.g., *liability* — you may get a lot of unwanted results. Clause9 provides several tools to narrow down your search results:

* Clause9 When you type **multiple words**, Clause9 will only show files that contain all of these words. For example, searching for `liability damage` will only show files that contain both the word `liability` and the word `damage`.
* You can **exclude clauses that contain a certain word** by putting a hyphen in front of that word. For example, searching for `liability -damage` will only show files that contain the word `liability`, but not the word `damage`.
* You can put **double quotes** around words to make sure they are found next to each other. For example, while searching for `liability damage` would also find files where the word liability and damage are twenty-five words apart from each other, searching for `"liability damage"` (with quotes) will only find files where those two words are near each other. (Note that unimportant stop words between them would be ignored — for example, a file containing the three words `liability the damage`, in that order, would also be found, because `the` will be ignored.)

### Advanced word searches <a href="#bare-search" id="bare-search"></a>

As described above, Clause9 will optimise your keyword searches by searching for word variations and synonyms, replacing concepts with synonyms, dropping words that have little significance (such as articles), etc. Usually this smart behaviour is exactly what you want, but there are situations where you want to search without these optimisations.

By choosing **bare search** in the dropdown box at the right (instead of a regular language such as English) Clause9 will perform an advanced search:

* Your search input is **taken “as is”**, i.e. without any optimisations. Any character you type — even a quote, curly brace, angular bracket, etc. — will need to be present exactly “as is” in the clause in order to be found.
* Your search is performed **across all languages** at once.
* Clause9 will not only search within the filename and (for a clause) title and body, but also in the **legal comments**, **description** and **enabled condition**.
* You can combine multiple queries using the operators `_AND_` / `_OR_` / `_NOT_`.
* You can use the `%` operator in your input to leave out certain characters. For example, searching for `optimi%ation` would not only find files with the word `optimization` (US spelling), but also files with the word `optimisation` (UK spelling). Be aware that the number of characters that is dropped is unlimited, so this may also find files containing **`optimi`**`se the efficiency of the organis`**`ation`**.

This is particularly interesting when you want to search for the special Clause9 grammar — e.g. special @functions that were used, or certain curly braces { … } or conditions. For example, if you want to search for all clauses containing `@assigned` and `#vendor` — even if only used in the enabled condition — you could do a bare search on `@assigned _AND_ #vendor`

## Searching for attributes

When you click on the <img src="/files/OrSMSm7eUOTwBcvsJLRW" alt="" data-size="line"> button, you can add one or more [attributes](/files/attributes.md) to search on.

For example, when searching for confidentiality clauses using the generic keyword `confidentiality`, it could be useful to filter on the attribute `mutual?` to only show mutual confidentiality clauses.

Note that when you add multiple attributes, they must be simultaneously met in order for a clause to show up in the results list.

## Searching in specific locations

When you click on the <img src="/files/9sIwsGkgV8CThsGHDWBk" alt="" data-size="line"> button, you are invited to specify the folder where a certain file must be located. Only files that are found within the specified folder, or any of its subfolders, will show up in the results list.

## Searching for specific file types

When you click on the <img src="/files/czrkap88E6gMRoW8LtXI" alt="" data-size="line"> button, you can filter on a file’s type — e.g., only *folders*, or only *images*, or only *binders*.

{% hint style="info" %}
Search for other file types is only possible outside *Assemble Document*. The *Assemble Document* search pane always searches for *clauses* to insert.
{% endhint %}

## Searching for links

In Clause9, a clause can establish links to other clauses, to establish that a clause in an *implementation* of a certain concept, a *definition* for a certain concept, or constitutes an alternative for another clause. By clicking on the <img src="/files/7GH2gKP0aOsNglQX8qGJ" alt="" data-size="line"> button, you can filter the results to only show files with a certain link.

Similarly, buy clicking on the <img src="/files/Jhe4pue06EQZKWZZYR93" alt="" data-size="line"> button, you can enter one or more **cross-tags** that need to be implemented by the resulting clauses.

## Adding a search result to your document

If you have found a relevant clause, you will obviously want to insert it into your document.

Adding a clause to your document can be done by one of these plus signs <img src="/files/ttIsgDOePSvcSsx7god4" alt="" data-size="line"> next to the relevant clause.

* The **purple plus** icon adds the clause to your document with the title visible.
* The **green plus** icon only adds the body text without making the title visible (this can be toggled afterwards as well by clicking the <img src="/files/iIox5XUcWup2H5co703c" alt="" data-size="line"> button in the document toolbar).

Clicking these plus signs will show a drop-down menu that lets you choose where the clause will be inserted. If you have not selected a clause, only the following choices will be visible:

<figure><img src="/files/zwGQX9eJPlRzSGP9xLbH" alt="" width="284"><figcaption></figcaption></figure>

However, having selected a clause in the document on the left side gives you more options:

<figure><img src="/files/XlpiE3RqhLi7CFclgufq" alt="" width="315"><figcaption></figcaption></figure>

## Versions to show

Clause9 allows you to [archive old versions of a clause](/clauses/clause-versioning.md), e.g. when legislation changes and certain wording needs to be changed for contracts as from a certain date. By default, all versions of a clause will show up (assuming they meet the search criteria that were specified). When you only want to show the current version of a clause, uncheck the <img src="/files/oQ6D4vQkdd6cDLy89Wby" alt="" data-size="line"> checkbox.

Note that this checkbox has no effect on clauses that are not yet versioned.

## Saving searches

All your search criteria can be saved together for later re-use by clicking this button <img src="/files/RpQR4iqs0BHfMbhngtZK" alt="" data-size="line"> next to the “search” button.

{% hint style="success" %}
These saved searches are also essential when using [action buttons](/clauses/action-buttons.md) that allow other users to re-execute a search you saved.

For example, you may create a set of search criteria that search for liability clauses in French within a certain subfolder — by saving these search criteria and then offering them to other users as part of an action button, you allow those other users to re-perform the search in the future. When new clauses would get added in the meantime, they will show up in these feature searches.
{% endhint %}

## Showing additional information about search results

The <img src="/files/dupyZCtpE6HtE4x55Rfq" alt="" data-size="line">  button can be toggled to show or hide the **location** of the search results and their attributes.

## Warnings & tips

* For performance reasons, Clause9 **currently limits the number of search results to 50**. Please be aware that it can be unpredictable which files get truncated from the result list.
* **Sometimes keyword searches are simply not the right search tool** — particularly when you are using fairly general keywords that are used in many different clauses. Considering [browsing](/files/browse-files.md) for clauses instead: digging through a subject-based taxonomy is often more in line with how legal experts “think” about certain clauses.


---

# Agent Instructions: 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:

```
GET https://help.clause9.com/assemble-document-operations-panel/search-pane.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
