Skip to content

Commit

Permalink
Update reference/api/faceting.md
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Mourier <guillaume@meilisearch.com>
  • Loading branch information
guimachiavelli and gmourier authored Jul 6, 2022
1 parent be6cd5c commit 8fa84da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/api/faceting.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Partially update the faceting settings for an index. The index [`uid`](/learn/co
**Type:** integer
**Default value:** `100`

Configure the maximum number of facet values returned for each facet. Values are alphabetically sorted.
Configure the maximum number of facet values returned for each facet. Values are sorted in ascending lexicographical order.

For example, suppose a query's search results contain a total of three values for a `colors` facet: `blue`, `green`, and `red`. If you set `maxValuesPerFacet` to `2`, Meilisearch will only return `blue` and `green` in the response body's `facetDistribution` object.

Expand Down

0 comments on commit 8fa84da

Please sign in to comment.