meilisearch-swift
meilisearch-swift copied to clipboard
[v1.8] Support `searchCutoffMs` setting
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:
searchCutoffMswithget,update, andresetmethods 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
/settingsAPI route (to get, reset and update the settings globally) must be able to receive in the payload the newsearchCutoffMsfield - [ ] ⚠️ Add integration tests ⚠️
- [ ] Update the
.code-samples.meilisearch.yaml- [ ] Add
get_search_cutoff_1key 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_1key 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_1key 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_1key and “translate” the following curl example by adding the new setting: https://github.com/meilisearch/documentation/blob/84fad8b88a9b50a6e79bccb7da159bcf78193e54/.code-samples.meilisearch.yaml#L128
- [ ] Add