Child route of the settings route.
The stop-words route lets you add a list of words that will be ignored in search queries. So if you add the
as a stop word and you make a search on the mask
you will only have matching documents with mask
.
Stop-words can also be updated directly through the global settings route along with the other settings.
::: note
Updating the settings means overwriting the default settings of MeiliSearch. You can reset to default values using the DELETE
routes.
:::
Get the stop-words list of an index.
Variable | Description |
---|---|
index_uid | The index UID |
["of", "the", "to"]
Update the list of stop-words of an index.
Variable | Description |
---|---|
index_uid | The index UID |
An array of strings that contains the stop-words.
If a list of stop-words already exists it will be overwritten (replaced).
More information about the body.
{
"updateId": 1
}
This updateId
allows you to track the current update.
Reset the list of stop-words of an index to its default value.
Empty array: []
Variable | Description |
---|---|
index_uid | The index UID |
{
"updateId": 1
}
This updateId
allows you to track the current update.