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

[v1.6] Support `proximityPrecision` 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.6.0: the proximity-precision setting. Refer to docs for more information.

  • [ ] Add the new settings: proximityPrecision with get, update, and reset methods associated. Here are the JS equivalents in meilisearch-js you should create for this repository:
client.index('indexName').getProximityPrecision(); // calls GET /indexes/:uid/settings/proximity-precision
client.index('indexName').updateProximityPrecision('byAttribute');  // calls PUT /indexes/:uid/settings/proximity-precision
client.index('indexName').resetProximityPrecision(); // calls DELETE /indexes/:uid/settings/proximity-precision
  • [ ] 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 proximityPrecision field
  • [ ] ⚠️ Add integration tests ⚠️
  • [ ] Update the .code-samples.meilisearch.yaml
    • [ ] Add get_proximity_precision_settings_1 key and “translate” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/cd9598324329d20d23f1d9200c6c537acaf01f3e/.code-samples.meilisearch.yaml#L1150-L1152
    • [ ] Add update_proximity_precision_settings_1 key and “translate” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/cd9598324329d20d23f1d9200c6c537acaf01f3e/.code-samples.meilisearch.yaml#L1153-L1157
    • [ ] Add reset_proximity_precision_settings_1 key and “translate” the following curl example by using the newly added methods: https://github.com/meilisearch/documentation/blob/cd9598324329d20d23f1d9200c6c537acaf01f3e/.code-samples.meilisearch.yaml#L1158C1-L1160

curquiza avatar Jan 15 '24 18:01 curquiza