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

Add support to the typo tolerance customization

Open brunoocasali opened this issue 3 years ago • 0 comments
trafficstars

⚠️ This issue is generated, it means the examples and the namings do not necessarily correspond to the language of this repository. Also, if you are a maintainer, feel free to add any clarification and instruction about this issue.

Related to:

  • parent issue: https://github.com/meilisearch/integration-guides/issues/190
  • specification: https://github.com/meilisearch/specifications/pull/117

Add a typoTolerance index settings resource to manage customization of the typo tolerance feature at the index level.

  • Expose typoTolerance object on /indexes/:index_uid/settings endpoints.
  • Add GET/POST/DELETE - /indexes/:index_uid/settings/typo-tolerance endpoints.

The typoTolerance object definition is made of the following properties:

  • enabled type (boolean)
  • disableOnAttributes type (array[string])
  • disableOnWords type (array[string])
  • minWordSizeForTypos type (object)
    • oneTypo type (int)
    • twoTypos type (int)

More information about what each field does could be checked in the spec.

Check the other customization methods for reference like: synonyms, searchableAttributes, filterableAttributes.

TODO:

  • [ ] Add the new methods to customize typo-tolerance
    • [ ] GET /indexes/:index_uid/settings/typo-tolerance
    • [ ] POST /indexes/:index_uid/settings/typo-tolerance
    • [ ] DELETE /indexes/:index_uid/settings/typo-tolerance
  • [ ] Add tests

brunoocasali avatar Apr 11 '22 19:04 brunoocasali