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

Get documents by filter #8

Open
1 task
brunoocasali opened this issue Jun 7, 2023 · 1 comment
Open
1 task

Get documents by filter #8

brunoocasali opened this issue Jun 7, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@brunoocasali
Copy link
Contributor

brunoocasali commented Jun 7, 2023

⚠️ This issue is generated, it means the examples and the namings do not necessarily correspond to the language of this repository.
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#261


⚠️ This issue is part of the new Meilisearch v1.2 release.

New implementation

Related to:

It gives the user the possibility to use a filter expression to retrieve documents, like in search.

Implement in the Meilisearch.Document.list method an internal conditional allowing the user to query the documents with the same method but using a new filter method.

When the user calls the get documents method with a filter argument, request POST /indexes/{index_uid}/documents/fetch using a JSON body containing an int offset, int limit, String[] fields and now String filter or String[] filter.
⚠️ If the method invocation does not contain a filter it should still call the previous implementation.

Todo:

  • Implement the Meilisearch.Document.list new behavior keeping the old behavior when possible.
@brunoocasali
Copy link
Contributor Author

@BlitzBanana can you add the labels enhancement / good first issue to this issue?

@BlitzBanana BlitzBanana added enhancement New feature or request good first issue Good for newcomers labels Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants