- 
                Notifications
    You must be signed in to change notification settings 
- Fork 12
Open
Description
Also, if you are a maintainer, please add any clarification and instructions about this issue.
Sorry if this is already wholly/partially implemented. Feel free to let me know about the state of this issue in the repo.
Related to meilisearch/integration-guides#280
New implementation
Related to:
- issue: Sort facets value by alphanumerical or count order meilisearch/meilisearch#3612
- discussion: Retrieve facet values sorted by the number of corresponding documents meilisearch/product#519 (comment)
- spec: Faceting Setting API - sortFacetValuesBy meilisearch/specifications#247
Adds the ability to sort facets by their value which could be by using alpha or count.
Ensure the SDKs can handle the new index faceting configuration attribute sortFacetValuesBy. This enum could only take count or alpha.
The faceting configuration now have two attributes:
maxValuesPerFacet: integer
sortFacetValuesBy: object 
  index_name: alpha|count
  *: alpha|count // when should be applied to all indexes
TODO:
-  Add the ability receive a new param in the updateFacetingsettings method calledsortFacetValuesBy.
- Add integration tests
Metadata
Metadata
Assignees
Labels
No labels