# Searching for Documents

There are two types of search available: basic search and advanced search. Basic search is based on terms included in the title and description of documents. Advanced search uses complex search forms that contain multiple criteria.&#x20;

## Basic search&#x20;

To perform a basic search:&#x20;

1. Click on <img src="https://2224254070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDUF1p2rT0hfE3QBlbbvE%2Fuploads%2Fi2zE7YFCtw0HbCojQ2GH%2Fng-documents-inactive.png?alt=media&#x26;token=45622222-0095-4a82-834d-fd47ba729e4a" alt="" data-size="line"> to open the **Documents** panel.&#x20;
2. Click on <img src="https://2224254070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDUF1p2rT0hfE3QBlbbvE%2Fuploads%2FXBqgCNFFC58cDYVVYGJZ%2Fng-documents-recherche-inactive.png?alt=media&#x26;token=bb26590c-da5a-4c94-b81d-8dd27148a8de" alt="" data-size="line"> to perform a search.&#x20;
3. In the **Basic** tab, indicate whether you want to restrict the search to a selection of items or to items displayed in the map.&#x20;
4. Select the repository in which to perform the search.&#x20;
5. Enter the search terms. \
   The terms will be searched in the title and description of the documents. \
   The search is not case sensitive but accents are taken into account.&#x20;
6. Click **Search**. The results are displayed in the **Show selected documents** section of the **Documents** panel. [Showing Selected Documents](https://docs-jmapserver-lima.k2geospatial.com/e/extensions/documents/documents-for-jmap-ng/showing-selected-documents) section provides more details.<br>

   <figure><img src="https://2224254070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDUF1p2rT0hfE3QBlbbvE%2Fuploads%2FtnLyOfUCBMtADYGcEoER%2Fclip02.png?alt=media&#x26;token=8558498f-929a-4403-9a38-e84d83558016" alt=""><figcaption></figcaption></figure>

## Advanced Search&#x20;

To perform an advanced search:&#x20;

1. Click on <img src="https://2224254070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDUF1p2rT0hfE3QBlbbvE%2Fuploads%2Fi2zE7YFCtw0HbCojQ2GH%2Fng-documents-inactive.png?alt=media&#x26;token=45622222-0095-4a82-834d-fd47ba729e4a" alt="" data-size="line"> to open the **Documents** panel.&#x20;
2. Click on <img src="https://2224254070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDUF1p2rT0hfE3QBlbbvE%2Fuploads%2FXBqgCNFFC58cDYVVYGJZ%2Fng-documents-recherche-inactive.png?alt=media&#x26;token=bb26590c-da5a-4c94-b81d-8dd27148a8de" alt="" data-size="line"> to perform a search.&#x20;
3. In the **Advanced** tab, specify whether you want to restrict the search to a selection of items or to items displayed on the map.&#x20;
4. Select the repository in which to search.&#x20;
5. Select the form to use to enter the search terms.&#x20;
6. Click **Next**.&#x20;
7. Enter the search terms. \
   The form can contain multiple sections. \
   Some attributes may be required, meaning that you must give them a value before the search can be performed. \
   The search is not case-sensitive, but accents are taken into account.&#x20;
8. Click **Search**. The results are displayed in the **Show Selected Documents** section of the **Documents** panel.[ Showing Selected Documents](https://docs-jmapserver-lima.k2geospatial.com/e/extensions/documents/documents-for-jmap-ng/showing-selected-documents) section provides more details.<br>

   <figure><img src="https://2224254070-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDUF1p2rT0hfE3QBlbbvE%2Fuploads%2FXL87NC9PIgVBhlAUuY3w%2Fclip03.png?alt=media&#x26;token=28620f57-8c5e-4d7e-a780-40c813a7b622" alt=""><figcaption></figcaption></figure>
