Skip to content

Commit 63c2f96

Browse files
bidoubiwagmourier
andcommitted
Update .changeset/fresh-tables-clap.md
Co-authored-by: Guillaume Mourier <[email protected]>
1 parent 72de4c8 commit 63c2f96

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.changeset/fresh-tables-clap.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
Currently, for each `facet value` selected in a different `facet` a separate request is made to Meilisearch. Plus, an additional one containing all the facets filters. It results in tedious search requests and a high bandwidth cost.
1212
For example, if I select `Adventure` on genres and `Multiplayer` on players, one request is made with both facet filters, one with only `genres=Adventure` and one with only `players=Multiplayer`
1313

14-
In the next release of Meilisearch, the `multi-index` route should be released (see [PR](https://github.com/meilisearch/meilisearch/pull/3417)). When it is released, the work-around will be removed and only one request will be done in all cases!
14+
In the next release of Meilisearch, a new `multi-search` API route is planned to be released (see [PR](https://github.com/meilisearch/meilisearch/pull/3417)). When it is released, the work-around will be removed and only one HTTP request will be done in all cases!
1515

1616

17-
## Explaination
17+
## Explanation
1818

19-
The way the `facet distribution` is calculated changed. The `facet distribution` shows the numbers of hits for each facet. For example:
19+
The way the `facetDistribution` is calculated changed. The `facetDistribution` shows the numbers of hits for each facet. For example:
2020

2121
Given the following facet:
2222

@@ -25,7 +25,7 @@ Genres
2525
- [ ] Adventure 7
2626
```
2727

28-
The `facet distribution` provides the information that there are 7 hits containing the adventure genre.
28+
The `facetDistribution` provides the information that there are `7` hits containing the adventure genre.
2929

3030
For the example, let's take the following facets:
3131

@@ -50,7 +50,7 @@ Players
5050
- [ ] Single player 3
5151
```
5252

53-
In the new behavior the distribution number are not changed when facet values are selected inside the same facet.
53+
With the new behavior, the distributed number are not changed when facet values are selected inside the same facet because a facet distribution is computed with a dedicated search request.
5454

5555
```
5656
Genres
@@ -74,4 +74,4 @@ Players
7474

7575
This is the conventional way of calculating the facet distribution. Similar to Algolia's behavior. If you prefer the old behavior, please consider opening an issue.
7676

77-
See [complete explaination here](https://github.com/meilisearch/instant-meilisearch/issues/884)
77+
See [complete explanation here](https://github.com/meilisearch/instant-meilisearch/issues/884)

.changeset/rich-wasps-tell.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
Currently, for each index a request is made on, a separated request is made to Meilisearch. For example, if you have two indexes on which to search, two http requests are made.
1010

11-
In the next release of Meilisearch, the `multi-index` route should be released (see [PR](https://github.com/meilisearch/meilisearch/pull/3417)). When it is released, the work-around will be removed and only one request will be done in all cases!
11+
In the next release of Meilisearch, a new `multi-search` API route is planned to be released (see [PR](https://github.com/meilisearch/meilisearch/pull/3417)). When it is released, the work-around will be removed and only one HTTP request will be done in all cases!

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ The `refinementList` widget is one of the most common widgets you can find in a
676676
- ✅ cssClasses: The CSS classes to override.
677677

678678
The `RefinementList` widget uses the `disjunctive facet search` principle when using the `or` operator. For each different facet category used, an additional http call is made.
679-
For example, if I ask for `color=green` and `size=2`, three http requests are made. One for the hits, one for the `color` distribution and one for the `size` distribution. To provide any feedback on the subject, refer to [this discussion](https://github.com/meilisearch/product/issues/54).
679+
For example, if I ask for `color=green` and `size=2`, three http requests are made. One for the hits, one for the `color` facet distribution, and one for the `size` facet distribution. To provide feedback on the subject, refer to [this discussion](https://github.com/meilisearch/product/issues/54).
680680

681681
The following example will create a UI component with the a list of genres on which you will be able to facet.
682682

0 commit comments

Comments
 (0)