younifyd
Menu

Get document

Get document

GET/indexes/{index_uid}/documents/{document_id}

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Get document action (under Documents).
  3. Fill in the fields below, then reference the result from later steps as {{getDocument.response.data}}.

Request

Path parameters

index_uidstringrequired

Unique identifier of the index.

document_idstringrequired

The document identifier.

Query parameters

fieldsarray<string>

Comma-separated list of document attributes to include in the response. Use `*` to retrieve all attributes. By default, all attributes listed in the `displayedAttributes` setting are returned. Example: `title,description,price`.

retrieveVectorsboolean

When `true`, includes the vector embeddings in the response for this document. This is useful when you need to inspect or export vector data. Note that this can significantly increase response size if the document has multiple embedders configured. Defaults to `false`.

useNetworkboolean

When `true`, runs the query on the whole network (all shards covered exactly once). When `false`, the query runs locally. When omitted or `null`, the default value depends on whether the sharding is enabled for the instance: - If the instance has sharding enabled (has a leader), defaults to `true`. - Otherwise defaults to `false`. It also requires the `network` [experimental feature](http://localhost:3000/reference/api/experimental-features/configure-experimental-features). Values: `true` = use the whole network; `false` = local, default = see above. When using the network, the index must exist with compatible settings on all remotes.

Response

Returns 200 with a any. Read it in later steps with {{getDocument.response.data.<field>}}.

Need more? See the Meilisearch guide for connection setup and behaviour shared by every action.