Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Specify order of returned facet
Browse files Browse the repository at this point in the history
  • Loading branch information
gmourier committed Jun 28, 2022
1 parent 5e1eeea commit fb8b067
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions text/157-faceting-setting-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ This settings will host the parameters to configure the faceting behavior for an
- Required: False
- Default: `100`

Define maximum number of value returned for a distributed facet.
Define maximum number of value returned for all distributed facets.

e.g. It means that with the default value of `100`, it is not possible to have `101` colors if the color field is defined as a facet at search time.
e.g. It means that with the default value of `100`, it is not possible to have `101` different colors if the `color` field is defined as a facet at search time.

The value of 100 ensures good performance and prevents malicious users from scraping data from a Meilisearch instance.

Increasing this value can degrade performance as well as expose the data of an instance to scrapping.

The facets that are returned are not specified, they are not sorted in a particular way.
The facets that are returned are sorted in ascending lexicographical order.

## 3.2. API Endpoints Definition

Expand Down

0 comments on commit fb8b067

Please sign in to comment.