Commands

Fetch

Fetch Command for Python SDK

Used to retrieve documents by their IDs.

Arguments

FetchPayloadobjectrequired

Response

DocumentsList[Document]required

This field is null if no document with the specified ID is found.

By ID
documents = index.fetch(ids=["movie-0", "movie-1"])print(documents)
ID Prefix
documents = index.fetch(prefix=["movie-"])print(documents)
Loading search…