Skip to content

Commit a6b28ba

Browse files
Version Packages (#988)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 4e850a9 commit a6b28ba

File tree

12 files changed

+97
-101
lines changed

12 files changed

+97
-101
lines changed

.changeset/fresh-tables-clap.md

Lines changed: 0 additions & 77 deletions
This file was deleted.

.changeset/nice-monkeys-rest.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/rich-wasps-tell.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/instant-meilisearch/CHANGELOG.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,94 @@
11
# @meilisearch/instant-meilisearch
22

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+
392
## 0.10.2-turbo-migration.0
493

594
### Patch Changes

packages/instant-meilisearch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@meilisearch/instant-meilisearch",
3-
"version": "0.10.2-turbo-migration.0",
3+
"version": "0.11.0",
44
"private": false,
55
"description": "The search client to use Meilisearch with InstantSearch.",
66
"homepage": "https://github.com/meilisearch/instant-meilisearch",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const PACKAGE_VERSION = '0.10.2-turbo-migration.0'
1+
export const PACKAGE_VERSION = '0.11.0'

playgrounds/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@angular/platform-browser": "~15.1.0",
2020
"@angular/platform-browser-dynamic": "~15.1.0",
2121
"@angular/router": "~15.1.0",
22-
"@meilisearch/instant-meilisearch": "0.10.2-turbo-migration.0",
22+
"@meilisearch/instant-meilisearch": "0.11.0",
2323
"algoliasearch": "^4.14.3",
2424
"angular-instantsearch": "^4.0.0",
2525
"instantsearch.js": "^4.14.0",

playgrounds/geo-javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"devDependencies": {
1414
"@babel/core": "^7.20.12",
15-
"@meilisearch/instant-meilisearch": "0.10.2-turbo-migration.0",
15+
"@meilisearch/instant-meilisearch": "0.11.0",
1616
"eslint-config-meilisearch": "*"
1717
},
1818
"browserslist": [

playgrounds/javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
],
1919
"license": "MIT",
2020
"dependencies": {
21-
"@meilisearch/instant-meilisearch": "0.10.2-turbo-migration.0"
21+
"@meilisearch/instant-meilisearch": "0.11.0"
2222
}
2323
}

playgrounds/local-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"author": "",
2525
"license": "ISC",
2626
"dependencies": {
27-
"@meilisearch/instant-meilisearch": "0.10.2-turbo-migration.0",
27+
"@meilisearch/instant-meilisearch": "0.11.0",
2828
"instantsearch.css": "^7.4.5",
2929
"react": "^17.0.1",
3030
"react-dom": "^17.0.1",

0 commit comments

Comments
 (0)