meilisearch/meilisearch-rust

Add support to the facet setting customization at the index level

Closed this issue · 1 comments

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

Related to:


Add a faceting index settings resource to manage customization of the maximum value per facet.

  • Expose faceting object on /indexes/:index_uid/settings endpoints.
  • Add GET/PATCH/DELETE - /indexes/:index_uid/settings/faceting endpoints.

The faceting object definition is made of the following properties:

  • maxValuesPerFacet 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 faceting
    • GET /indexes/:index_uid/settings/faceting
    • PATCH /indexes/:index_uid/settings/faceting
    • DELETE /indexes/:index_uid/settings/faceting
  • Add tests

From this list the following code-samples needs to be added as well:

  • get_faceting_settings_1: |-
  • update_faceting_settings_1: |-
  • reset_faceting_settings_1: |
  • settings_guide_faceting_1: |-