# Searching documents

Two types of search are available: basic and advanced search:&#x20;

* Basic search is based on the terms included in the title and description of the 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="/files/oj8DENnI7ngSb8OP5BB0" alt="" data-size="line"> to open the **Documents** panel and then on <img src="/files/oao4XgjnjPZ8fFORKLdk" alt="" data-size="line"> **Search for documents**.&#x20;
2. In the **Basic search** tab indicate whether you want to restrict the search to a selection of elements or to all the elements displayed in the map.&#x20;
3. Select the deposit to search in.&#x20;
4. 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;
5. Click on **Search**. The results appear in the <img src="/files/tfbf8epI55mhkSar15Z1" alt="" data-size="original"> **Show Selected Documents** section of the **Documents** panel. The [Show Selected Documents](#recherche-simple) section offers more details.\
   ![](/files/DqvTqhs37ROyIuf6DRG9)

## Advanced search&#x20;

To perform an advanced search:&#x20;

1. Click on <img src="/files/oj8DENnI7ngSb8OP5BB0" alt="" data-size="line"> to open the **Documents** panel and then on <img src="/files/oao4XgjnjPZ8fFORKLdk" alt="" data-size="line">  **Search for documents**.
2. In the **Advanced Search** tab indicate whether you want to restrict the search to a selection of elements or to the elements displayed in the map.&#x20;
3. Select the deposit to search in.&#x20;
4. Select the form to use to enter search terms.&#x20;
5. Click Next.&#x20;
6. Enter the search terms. The form can contain several sections. Some attributes may be mandatory, that is, you must give them a value for the search to be performed. The search is not case sensitive but accents are taken into account.&#x20;
7. Click Search. The results appear in the <img src="/files/tfbf8epI55mhkSar15Z1" alt="" data-size="original"> **Show Selected Documents** section of the **Documents** panel. The [Showing Selected Documents](#basic-search) section offers more details.\
   ![](/files/DqvTqhs37ROyIuf6DRG9)


---

# 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://docs.k2geospatial.com/en2/jmap-server-extensions/documents/jmap-documents-user-guide/documents-for-jmap-ng/searching-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.
