|
1 | 1 | # @meilisearch/instant-meilisearch
|
2 | 2 |
|
| 3 | +## 0.11.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- 72de4c8: - Change the behavior of the `or` operator parameter on the [`RefinmentList`](https://www.algolia.com/doc/api-reference/widgets/refinement-list/js/) widget. |
| 8 | + |
| 9 | + ⚠️ This impacts the facet distribution number |
| 10 | + |
| 11 | + ## Drawback |
| 12 | + |
| 13 | + 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. |
| 14 | + 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` |
| 15 | + |
| 16 | + 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! |
| 17 | + |
| 18 | + ## Explanation |
| 19 | + |
| 20 | + The way the `facetDistribution` is calculated changed. The `facetDistribution` shows the numbers of hits for each facet. For example: |
| 21 | + |
| 22 | + Given the following facet: |
| 23 | + |
| 24 | + ``` |
| 25 | + Genres |
| 26 | + - [ ] Adventure 7 |
| 27 | + ``` |
| 28 | + |
| 29 | + The `facetDistribution` provides the information that there are `7` hits containing the adventure genre. |
| 30 | + |
| 31 | + For the example, let's take the following facets: |
| 32 | + |
| 33 | + ``` |
| 34 | + Genres |
| 35 | + - [ ] Adventure 7 |
| 36 | + - [ ] Action 5 |
| 37 | + - [ ] Science Fiction 5 |
| 38 | + Players |
| 39 | + - [ ] Multiplayer 11 |
| 40 | + - [ ] Single player 7 |
| 41 | + ``` |
| 42 | + |
| 43 | + Before, when selecting a facet value in a certain facet, the distribution of that facet was impacted. |
| 44 | + |
| 45 | + ``` |
| 46 | + - [x] Adventure 7 |
| 47 | + - [ ] Action 3 // <- number changed from 5 to 3 |
| 48 | + - [ ] Science Fiction 1 // <- number changed from 5 to 1 |
| 49 | + Players |
| 50 | + - [ ] Multiplayer 6 |
| 51 | + - [ ] Single player 3 |
| 52 | + ``` |
| 53 | + |
| 54 | + 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. |
| 55 | + |
| 56 | + ``` |
| 57 | + Genres |
| 58 | + - [x] Adventure 7 |
| 59 | + - [ ] Action 5 // <- number did not change |
| 60 | + - [ ] Science Fiction 5 // <- number did not change |
| 61 | + Players |
| 62 | + - [ ] Multiplayer 6 |
| 63 | + - [ ] Single player 3 |
| 64 | + ``` |
| 65 | + |
| 66 | + ``` |
| 67 | + Genres |
| 68 | + - [x] Adventure 7 // changed because of Multiplayer |
| 69 | + - [ ] Action 4 |
| 70 | + - [ ] Science Fiction 3 |
| 71 | + Players |
| 72 | + - [x] Multiplayer 6 |
| 73 | + - [ ] Single player 3 |
| 74 | + ``` |
| 75 | + |
| 76 | + 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. |
| 77 | + |
| 78 | + See [complete explanation here](https://github.com/meilisearch/instant-meilisearch/issues/884) |
| 79 | + |
| 80 | +- 72de4c8: - Compatibility with the `Index` widget is added. |
| 81 | + |
| 82 | + ## Drawback |
| 83 | + |
| 84 | + 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. |
| 85 | + |
| 86 | + 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! |
| 87 | + |
| 88 | +### Patch Changes |
| 89 | + |
| 90 | +- 33ae56b: Migrate the current repository to a turbo architecture |
| 91 | + |
3 | 92 | ## 0.10.2-turbo-migration.0
|
4 | 93 |
|
5 | 94 | ### Patch Changes
|
|
0 commit comments