# Search

Perform a Full-Text search query by using the `search` parameter.\
You can apply a search query for `all documents`, `collections`, or combine it with [`filters`](https://docs.comfortable.io/apis/rest-api/examples/filters).

## Search query

<mark style="color:blue;">`GET`</mark> `https://api.cmft.io/v1/<repoName>/<endpoint>?search=<searchTerm>`

#### Path Parameters

| Name     | Type   | Description                          |
| -------- | ------ | ------------------------------------ |
| repoName | string | The API identifier of the repository |
| endpoint | string | The endpoint you'd like to request   |
| search   | string | Provide the search term              |

#### Headers

| Name          | Type   | Description        |
| ------------- | ------ | ------------------ |
| Authorization | string | Provide an API Key |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Seach Features

### Stemming

The search supports [stemming](https://en.wikipedia.org/wiki/Stemming).

{% hint style="info" %}
You can control the locale for a search with the [`locale parameter`](https://docs.comfortable.io/apis/rest-api/filters/localisation). The default locale for the search is the same as a repositories default locale.
{% endhint %}

### Stop Words

The search supports language-specific stop words (e.g. in English, the, an, a, and, etc.)

### Exclude Words

Exclude words from the search by prefixing them with `-` (e.g. `Flowers -Sunflowers`)

## Supported Languages

**Stemming** and **Stop Words** are supported for the following languages:

* danish (da)
* dutch (nl)
* english (en)
* finnish (fi)
* french (fr)
* german (de)
* hungarian (hu)
* italian (it)
* norwegian (nb)
* portugese (pt)
* romanian (ro)
* russian (ru)
* spanish (es)
* swedish (sv)
* turkish (tr)
* arabic (ara)
* dari (prs)
* iranian persian (pes)
* urdu (urd)
* simplified chinese or hans (zhs)
* traditional chinese or hant (zht)
