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

[9.x] Support rename of filters to filter in meilisearch 0.21.x #510

Merged
merged 4 commits into from
Aug 24, 2021

Conversation

georgeboot
Copy link
Contributor

Meilisearch 0.21.0 contains a breaking change regarding the filters attribute. It was renamed to filter instead.
This PR addresses that by checking what version of the SDK was installed, and handling the attribute accordingly.

Not that user would need to manually add the attributes they want to filter on to the filterableAttributes setting, they can not be used on any field any more as one could before version 0.21.

@driesvints driesvints changed the title Support rename of filters to filter in meilisearch 0.21.x [9.x] Support rename of filters to filter in meilisearch 0.21.x Aug 24, 2021
@georgeboot
Copy link
Contributor Author

Only issue I can still see, is that we now check for the installed version of the SDK, not for the actual server version (which is technically more important). It is thus up to the user to match (major) versions.

The only way to check actual server version is by doing an API call, which isn't really ideal.

@driesvints
Copy link
Member

@georgeboot yeah indeed. But I think that's up to the user to match or up to the SDK, not for a third party library like Scout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants