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 in the searchResults #443

Merged
merged 5 commits into from
Mar 20, 2023

Conversation

bidoubiwa
Copy link
Contributor

Add the facetStats type in the SearchResults structure. It introduces min max values for numeric facet that have been required through the search parameter facet

As per the specification

SDK requirements: meilisearch/integration-guides#251

bidoubiwa and others added 4 commits March 15, 2023 14:04
442: Failing tests due to breaking patch in mockito r=irevoire a=bidoubiwa

Mockito released a [new patch version](https://github.com/lipanski/mockito/releases/tag/0.32.5) messing with the asynchronousity methods. 

Due to that, the tests were panicking in the other PR's. Since additionally to that I received a lot of warning from the library saying that the methods we were using are deprecated, I updated mockito to its v1 version.

Co-authored-by: Charlotte Vermandel <[email protected]>
@bidoubiwa bidoubiwa added the breaking-change The related changes are breaking for the users label Mar 15, 2023
@bidoubiwa bidoubiwa requested a review from alallema March 15, 2023 15:27
Copy link
Contributor

@alallema alallema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done! 🥖

outer_fn
.attrs
.push(parse_quote!(#[futures_await_test::async_test]));
outer_fn.attrs.push(parse_quote!(#[tokio::test]));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, what is tokio test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its the library used to handle async testing. We had to change it to be compatible with the new version of Mockito

src/tasks.rs Outdated Show resolved Hide resolved
@bidoubiwa bidoubiwa requested a review from alallema March 20, 2023 09:31
Copy link
Contributor

@alallema alallema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🎉

@bidoubiwa bidoubiwa merged commit eaa535a into bump-meilisearch-v1.1.0 Mar 20, 2023
@bidoubiwa bidoubiwa deleted the add_facetstats_for_ms_v1.1.0 branch March 20, 2023 09:39
@bidoubiwa bidoubiwa changed the title Add facetstats for Meilisearch v1.1.0 Add facetstats in the searchResponse Mar 29, 2023
@bidoubiwa bidoubiwa changed the title Add facetstats in the searchResponse Add facetstats in the searchResults Mar 29, 2023
bors bot added a commit that referenced this pull request Apr 3, 2023
456: Update version for the next release (v0.23.0) r=bidoubiwa a=meili-bot

This version makes this package compatible with Meilisearch v1.1 🎉
Check out the changelog of [Meilisearch v1.1](https://github.com/meilisearch/meilisearch/releases/tag/v1.1.0) for more information on the changes.

## 🚀 Enhancements
* Add the `multi_search` method on `Client` #454

## ⚠️ Breaking changes

* Rename `Document` trait to `IndexConfig` and extend with function to retrieve index (#445) `@amaihoefner`
* Add facetstats in the searchResults #443 
* Add a new `csv_delimiter` parameter on `index.add_or_replace_unchecked_payload` and `index. add_or_update_unchecked_payload` #455

Thanks again to `@amaihoefner,`  and `@shimatar0!` 🎉


Co-authored-by: meili-bot <[email protected]>
bidoubiwa added a commit that referenced this pull request Apr 3, 2023
* Failing tests due to breaking patch in mockito

* Add facetstats for Meilisearch v1.1.0

* Update src/tasks.rs

---------

Co-authored-by: bors[bot] <26634292+bors[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change The related changes are breaking for the users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants