meilisearch-swift icon indicating copy to clipboard operation
meilisearch-swift copied to clipboard

[v1.8] Support `searchCutoffMs` setting

Open curquiza opened this issue 1 year ago • 0 comments
trafficstars

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
  • [ ] The methods associated with the /settings API route (to get, reset and update the settings globally) must be able to receive in the payload the new searchCutoffMs field
  • [ ] ⚠️ Add integration tests ⚠️
  • [ ] Update the .code-samples.meilisearch.yaml
    • [ ] Add get_search_cutoff_1 key and “translate” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/84fad8b88a9b50a6e79bccb7da159bcf78193e54/.code-samples.meilisearch.yaml#L1191
    • [ ] Add update_search_cutoff_1 key and “translate” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/84fad8b88a9b50a6e79bccb7da159bcf78193e54/.code-samples.meilisearch.yaml#L1194
    • [ ] Add reset_search_cutoff_1 key and “translate” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/84fad8b88a9b50a6e79bccb7da159bcf78193e54/.code-samples.meilisearch.yaml#L1199
    • [ ] Update update_settings_1 key and “translate” the following curl example by adding the new setting: https://github.com/meilisearch/documentation/blob/84fad8b88a9b50a6e79bccb7da159bcf78193e54/.code-samples.meilisearch.yaml#L128

curquiza avatar May 07 '24 08:05 curquiza