meilisearch / meilisearch-rust

Rust wrapper for the Meilisearch API.
https://www.meilisearch.com
MIT License
350 stars 89 forks source link

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

Closed curquiza closed 2 months ago

curquiza commented 4 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