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 facetStats type in searchResponse for MS v1.1.0 #1459

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

bidoubiwa
Copy link
Contributor

@bidoubiwa bidoubiwa commented Mar 15, 2023

As per the specification

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

@bidoubiwa bidoubiwa added the enhancement New feature or request label Mar 15, 2023
@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 <[email protected]>
Co-authored-by: Charlotte Vermandel <[email protected]>
@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
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: Charlotte Vermandel <[email protected]>
@bidoubiwa bidoubiwa merged commit 6a72b08 into bump-meilisearch-v1.1.0 Mar 15, 2023
@bidoubiwa bidoubiwa deleted the add_min_max_for_ms_v1.1.0 branch March 15, 2023 15:37
@meili-bors
Copy link
Contributor

meili-bors bot commented Mar 15, 2023

Build failed:

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 <[email protected]>
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