-
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
[v1.3] Search in facet values facetSearch
#503
Labels
Comments
brunoocasali
added
good first issue
Good for newcomers
enhancement
New feature or request
labels
Aug 8, 2023
This was referenced Sep 5, 2023
meili-bors bot
added a commit
that referenced
this issue
Apr 15, 2024
512: Add facet_search API functionality r=curquiza a=hmacr # Pull Request ## Related issue Fixes #503 ## What does this PR do? - Add functionality to use the facet-search API - Add code samples for the new method ## PR checklist Please check if your PR fulfills the following requirements: - [x] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: hmacr <[email protected]> Co-authored-by: Clémentine U. - curqui <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, if you are a maintainer, please add any clarification and instructions about this issue.
Sorry if this is already wholly/partially implemented. Feel free to let me know about the state of this issue in the repo.
Related to meilisearch/integration-guides#280
This issue is divided into two sections, first, you need to make the implementation, and second, you must update the code-samples (no one likes outdated docs, right?).
New implementation
Related to:
Users of bigger datasets could have difficulty interacting with vast lists of facets data since, until today, it was not possible to search on them.
To introduce this feature into the SDKs, we must:
Create a new method called
facetSearch(facetSearchQuery)
/facet_search(facetSearchQuery)
Besides all the other parameters that a regular
SearchQuery
can take. The newFacetSearchQuery
can take afacetName
,facetQuery
,filter
,q
,matchingStrategy
.Params definition:
Code samples
Inside of this file:
.code-samples.meilisearch.yml
:Create a new entry with this key
facet_search_1
containing a call to the newfacetSearch
method.Refer to this curl example and translate it by using the Rust methods: https://github.com/meilisearch/documentation/blob/e4fdc3d485c22e31a045b8a71bacf18b6a7d50e0/.code-samples.meilisearch.yaml#L1069
Add new code sample
facet_search_3
with this content:Refer to this curl example and translate it by using the Rust methods: https://github.com/meilisearch/documentation/blob/e4fdc3d485c22e31a045b8a71bacf18b6a7d50e0/.code-samples.meilisearch.yaml#L1087
TODO:
facetSearch
The text was updated successfully, but these errors were encountered: