-
Couldn't load subscription status.
- Fork 12
Description
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
New implementation
Related to:
- issue: Delete and get documents by filter meilisearch/meilisearch#3477
- spec: Specify the new fetch documents route meilisearch/specifications#234
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.
filter it should still call the previous implementation.
Todo:
- Implement the
Meilisearch.Document.listnew behavior keeping the old behavior when possible.