meilisearch / meilisearch-java

Java client for Meilisearch

Home Page:https://meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[v1.8] Support `searchCutoffMs` setting

curquiza opened this issue · comments

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.

  • Add the new settings: searchCutoffMs with get, update, and reset methods associated.
    Here are the JS equivalents in meilisearch-js you should create for this repository:
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