# Search documents

You must have added documents in Datashare before. Check how for [Mac](/datashare/local-mode/install-datashare-on-mac/add-documents-to-datashare-on-mac.md), [Windows](/datashare/local-mode/install-datashare-on-windows/add-documents-to-datashare-on-windows.md) and [Linux](/datashare/local-mode/install-datashare-on-linux/add-documents-to-datashare-on-linux.md).

## Search bar

Expand the menu to go to '**Search**' > '**Documents**':

<figure><img src="/files/IW8uChDM0FqnFSEVOyYG" alt="Screenshot of a Datashare&#x27;s search documents page with the &#x27;Documents&#x27; entry in the &#x27;Search&#x27; category in the menu highlighted"><figcaption></figcaption></figure>

Make room by closing the menu:

<figure><img src="/files/GN1CS6hM5c8yONAU6Dwh" alt="Screenshot of a Datashare&#x27;s search documents page with the menu open and its top right X icon highlighted"><figcaption></figcaption></figure>

**Type terms** in the search bar and **press Enter**:

<figure><img src="/files/deDWbocOTKaxq22IujKg" alt="Screenshot of a Datashare&#x27;s search documents page with highlighted &#x27;Ikea&#x27; typed in the search bar"><figcaption></figcaption></figure>

## Default operator is OR

If you type **several terms** separated by space, as the **default operator is OR**, Datashare will search for all documents containing at least one of the searched terms.

For instance, Datashare finds documents containing **either 'ikea' or 'paris' or both terms here**:

<figure><img src="/files/pM5wYRYjsXOfBi7dUPup" alt="Screenshot of a Datashare&#x27;s search documents page with highlighted &#x27;Ikea paris&#x27; typed in the search bar"><figcaption></figcaption></figure>

## Linked entities

As you type a term, Datashare **suggest linked entities** - only if a task to find entities in this project was completed.

Press **Esc** on your keyboard to close the dropdown or **click on one of the entities** to replace your term in the search bar:

<figure><img src="/files/qBtmVloaizY8zWJ772R6" alt="Screenshot of a Datashare&#x27;s search documents page with &#x27;Ikea paris&#x27; typed in the search bar and a dropdown with linked entities below highligted"><figcaption></figcaption></figure>

## Search in a field

Search within a specific field only, by using the dropdown '**All fields**':

<figure><img src="/files/13oGZ9YqkpczyRTWZGFh" alt="Screenshot of a Datashare&#x27;s search documents page with &#x27;Ikea&#x27; typed in the search bar and the &#x27;All fields&#x27; dropdown button highlighted at the right of the search bar"><figcaption></figcaption></figure>

<figure><img src="/files/izkJHeVHBfTiJeLQqWCg" alt="Screenshot of a Datashare&#x27;s search documents page with &#x27;Ikea&#x27; typed in the search bar and the &#x27;All fields&#x27; dropdown highlighted at the right of the search bar"><figcaption></figcaption></figure>

## Search breadcrumb

To see your queries in the **search breadcrumb**, click on the icon on the left of the search bar:

<figure><img src="/files/VPxBFBSqq1BxHday90jE" alt="Screenshot of a Datashare&#x27;s search documents page with &#x27;Ikea&#x27; typed in the search bar and the &#x27;Your search&#x27; icon button highlighted at the left of the search bar"><figcaption></figcaption></figure>

<figure><img src="/files/6RwiEpBkcoABlXQjVRoY" alt="Screenshot of a Datashare&#x27;s search documents page with &#x27;Ikea&#x27; typed in the search bar and the &#x27;Your search&#x27; breadcrumb open and highlighted below the search bar"><figcaption></figcaption></figure>

If you'd like to remove all searched terms from the search bar, click '**Clear query**':

<figure><img src="/files/hn46ZMvAw2FiVxX6xe9E" alt="Screenshot of a Datashare&#x27;s search documents page with &#x27;Ikea&#x27; typed in the search bar and the &#x27;Your search&#x27; breadcrumb open and its &#x27;Clear query&#x27; button highlighted"><figcaption></figcaption></figure>

## Results settings

To change the page settings, click the **Settings icon** on the top right:

<figure><img src="/files/8YBE1q4TDJSmznIpJi2q" alt="Screenshot of a Datashare&#x27;s search documents page with &#x27;Ikea paris&#x27; typed in the search bar and the top right Settings icon button highlighted"><figcaption></figcaption></figure>

<figure><img src="/files/moxEerq3HZkBZvhxRNo9" alt="Screenshot of a Datashare&#x27;s search documents page with &#x27;Ikea&#x27; typed in the search bar and and the &#x27;Results settings&#x27; panel open and highlighted at the right of the page"><figcaption></figcaption></figure>

You can change **Sort by**, **Documents per page**, **Layout** and also **Properties**:

<figure><img src="/files/AoIYuMFFrxMW2f9RS2kX" alt="Screenshot of a Datashare&#x27;s search documents page with &#x27;Ikea&#x27; typed in the search bar and and the &#x27;Results settings&#x27; panel open and its &#x27;Properties&#x27; category highlighted at the right of the page"><figcaption></figcaption></figure>

Ticking these properties will change **which document's metadata are displayed in the results**, in the document cards, in all 3 layouts (List, Grid, Table):

<figure><img src="/files/zgZIrfuZeXJ00MrTwQnJ" alt="Screenshot of a Datashare&#x27;s search documents page with &#x27;Ikea paris&#x27; typed in the search bar and the &#x27;Results&#x27; column open and highlighted at the left of the page in a List layout"><figcaption></figcaption></figure>

<figure><img src="/files/a0eBstLyDqR75dL8qzJO" alt="Screenshot of a Datashare&#x27;s search documents page with &#x27;Ikea paris&#x27; typed in the search bar and the first document card highlighted at the left of the page in a Grid layout"><figcaption></figcaption></figure>

<figure><img src="/files/2i6afHT6VDdciM8pY9ub" alt="Screenshot of a Datashare&#x27;s search documents page with &#x27;Ikea paris&#x27; typed in the search bar and the first document card highlighted at the top of the results in a Table layout"><figcaption></figcaption></figure>

You can now make your search more precise [with operators or Regex (Regular Expressions)](/datashare/usage/search-with-operators.md).


---

# 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://icij.gitbook.io/datashare/usage/search-documents.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.
