meilisearch / meilisearch-swift

Swift client for the Meilisearch API
https://www.meilisearch.com
MIT License
93 stars 26 forks source link

[v1.8] Support `searchCutoffMs` setting #443

Open curquiza opened 6 months ago

curquiza commented 6 months ago

Following this central issue

This is related to a newly introduced feature in Meilisearch v1.8.0: the searchCutoffMs setting.

Refer to docs for more information.

client.index('indexName').getSearchCutoffMs(); // calls GET /indexes/:uid/settings/search-cutoff-ms
client.index('indexName').updateSearchCutoffMs(150);  // calls PUT /indexes/:uid/settings/search-cutoff-ms
client.index('indexName').resetSearchCutoffMs(); // calls DELETE /indexes/:uid/settings/search-cutoff-ms