/batches route gives information about the progress of batches of asynchronous operations.
Batch object
uid
Type: IntegerDescription: Unique sequential identifier of the batch. Starts at
0 and increases by one for every new batch.
details
Type: ObjectDescription: Basic information on the types tasks in a batch. Consult the task object reference for an exhaustive list of possible values.
progress
Type: ObjectDescription: Object containing two fields:
steps and percentage. Once Meilisearch has fully processed a batch, its progress is set to null.
steps
Information about the current operations Meilisearch is performing in this batch. A step may consist of multiple substeps.
percentage
The percentage of completed operations, calculated from all current steps and substeps. This value is a rough estimate and may not always reflect the current state of the batch due to how different steps are processed more quickly than others.
stats
Type: ObjectDescription: Detailed information on the payload of all tasks in a batch.
totalNbTasks
Number of tasks in the batch.
status
Object listing the status of each task in the batch. Contains five keys whose values correspond to the number of tasks with that status.
types
List with the types of tasks contained in the batch.
indexUids
List of the number of tasks in the batch separated by the indexes they affect.
progressTrace
List with full paths for each operation performed in the batch, together with the processing time in human-readable format.
writeChannelCongestion
Object containing information on write operations computed during indexing. Can be useful when diagnosing performance issues associated with write speeds.
internalDatabaseSizes
Size of each internal database, including by how much it changed after a batch was processed.
embedderRequests
Object containing the total number of requests made to the embedder. Also displays the number of failed requests, if any, along with the error message for the most recent failure.
Only present in batches with at least one task querying an embedder. This field continuously updates until Meilisearch finishes processing the batch.
duration
Type: StringDescription: The total elapsed time the batch spent in the
processing state, in ISO 8601 format. Set to null while the batch is processing tasks
startedAt
Type: StringDescription: The date and time when the batch began
processing, in RFC 3339 format
finishedAt
Type: StringDescription: The date and time when the tasks finished
processing, whether failed, succeeded, or canceled, in RFC 3339 format
batchStrategy
Type: StringDescription: A string describing the logic behind the creation of the batch. Can contain useful information when diagnosing indexing performance issues.
Get batches
GET
/batches
results array.
Batches are always returned in descending order of uid. This means that by default, the most recently created batch objects appear first.
Batch results are paginated and can be filtered with query parameters.
Query parameters
Response
Example
Response: 200 Ok
Get one batch
GET
/batches/{batch_uid}