Skip to content

Get documents by filter #8

@brunoocasali

Description

@brunoocasali

⚠️ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions