Filtering batches with the
/batches
route follows the same rules as filtering tasks. Keep in mind that many /batches
parameters such as uids
target the tasks included in batches, instead of the batches themselves.Requirements
- a command-line terminal
- a running Meilisearch project
Filtering tasks with a single parameter
Use the get tasks endpoint to fetch allcanceled
tasks:
canceled
and failed
tasks:
uid
, status
, type
, indexUid
, canceledBy
, or date. Consult the API reference for a full list of task filtering parameters.
Combining filters
Use the ampersand character (&
) to combine filters, equivalent to a logical AND
:
movies
index that have the type documentAdditionOrUpdate
or documentDeletion
and have the status
of processing
.
OR
operations between different filters are not supported. For example, you cannot view tasks which have a type of documentAddition
or a status of failed
.