-
Notifications
You must be signed in to change notification settings - Fork 89
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 methods for new index settings: facetSearch
and prefixSearch
#1068
base: main
Are you sure you want to change the base?
Add methods for new index settings: facetSearch
and prefixSearch
#1068
Conversation
f144123
to
49cba4a
Compare
Required for facet-search settings and possibly others.
49cba4a
to
cdbbdc1
Compare
@@ -64,7 +65,7 @@ def send_request( | |||
serialize_body = isinstance(body, dict) or body | |||
data = ( | |||
json.dumps(body, cls=serializer) | |||
if serialize_body | |||
if isinstance(body, bool) or serialize_body |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe these nested if
s are bit convoluted. But I decided not revamping them now :) Previous PRs suggest it might be for backward compatibility
.code-samples.meilisearch.yaml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note inconsistency: get_facet_search_settings
(note the _settings
suffix) x get_prefix_search
. Is there a reason for that? I left as is for consistency with existing implementations.
Pull Request
Related issue
Fixes #1048
What does this PR do?
PR checklist
Please check if your PR fulfills the following requirements:
Thank you so much for contributing to Meilisearch!