Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multi search method of Meilisearch v1.1 #1458

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

bidoubiwa
Copy link
Contributor

@bidoubiwa bidoubiwa commented Mar 15, 2023

Introduces the client.multiSearch() method as per the specifications

SDK requirements: meilisearch/integration-guides#251

@bidoubiwa bidoubiwa changed the base branch from main to bump-meilisearch-v1.1.0 March 15, 2023 13:13
@bidoubiwa bidoubiwa force-pushed the add_multi_search_for_v1.1.0 branch from 42b188b to 14aa5ea Compare March 15, 2023 13:26
@bidoubiwa bidoubiwa added the enhancement New feature or request label Mar 15, 2023
@bidoubiwa bidoubiwa requested a review from brunoocasali March 15, 2023 13:27
@bidoubiwa bidoubiwa force-pushed the add_multi_search_for_v1.1.0 branch from 14aa5ea to 3e0d3cb Compare March 15, 2023 13:28
@bidoubiwa bidoubiwa marked this pull request as ready for review March 15, 2023 14:16
@bidoubiwa
Copy link
Contributor Author

bors merge

meili-bors bot added a commit that referenced this pull request Mar 15, 2023
1458: Add multi search method of Meilisearch v1.1 r=bidoubiwa a=bidoubiwa

Introduces the `client.multiSearch()` method as per the [specifications](meilisearch/specifications#225)

SDK requirements: meilisearch/integration-guides#251

1459: Add facetStats type in searchResponse for MS v1.1.0 r=bidoubiwa a=bidoubiwa

As per [the specification](meilisearch/specifications#224)

SDK requirements: meilisearch/integration-guides#251

A new response field, `facetStats` is returned when `facets` is used in the search parameters. It contains the min max value of facets that contain numeric values.

I added some test `@brunoocasali` to ensure my typing is correct





Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com>
Co-authored-by: Charlotte Vermandel <charlottevermandel@gmail.com>
@meili-bors
Copy link
Contributor

meili-bors bot commented Mar 15, 2023

Build failed (retrying...):

meili-bors bot added a commit that referenced this pull request Mar 15, 2023
1458: Add multi search method of Meilisearch v1.1 r=bidoubiwa a=bidoubiwa

Introduces the `client.multiSearch()` method as per the [specifications](meilisearch/specifications#225)

SDK requirements: meilisearch/integration-guides#251

Co-authored-by: cvermand <33010418+bidoubiwa@users.noreply.github.com>
@meili-bors
Copy link
Contributor

meili-bors bot commented Mar 15, 2023

Build failed:

@bidoubiwa bidoubiwa merged commit 521b7cb into bump-meilisearch-v1.1.0 Mar 15, 2023
@bidoubiwa bidoubiwa deleted the add_multi_search_for_v1.1.0 branch March 15, 2023 15:36
bidoubiwa added a commit that referenced this pull request Mar 28, 2023
meili-bors bot added a commit that referenced this pull request Apr 3, 2023
1472: Update version for the next release (v0.32.1) r=bidoubiwa a=meili-bot


## 🚀 Enhancements

- New search response field `facetStats` provides `min` and `max` value for facets with numeric attributes #1459 
- New method `client.multiSearch()` provides the possibility to make multiple request at once #1458 

Example:
```js
client.multiSearch({ queries: [
    {
      indexUid: 'movies',
      q: 'pooh'
    },
    {
      indexUid: 'movies',
      q: 'nemo'
    },
    {
      indexUid: 'movie_ratings',
      q: 'us'
    },
  ]}
)
```


Co-authored-by: meili-bot <74670311+meili-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants