Fetch documents
In an index with a document schema, fetch documents by ID or by metadata filter. A request specifies exactly one ofids or filter, and can name up to 1,000 IDs. include_fields selects which fields come back, and omitting it returns all of them.
Fetch documents by ID
To fetch specific documents, pass their IDs:Fetch documents by metadata
To fetch every document matching a metadata filter expression, pass afilter instead of ids:
pagination.next token. Pass it back as pagination_token to get the next page, and stop when the response has no pagination token. In the REST API, limit sets the page size.
Unlike a filtered update or delete, a filtered fetch accepts the text-match operators $match_phrase, $match_all, and $match_any on full-text fields, so you can fetch documents by their text without running a search.
For the full request and response schema, see Fetch documents.