Commands
Range
range_documents = index.range(cursor="", limit=1)
print(range_documents.documents)
range_documents = index.range(
cursor=range_documents.next_cursor,
limit=3
)
print(range_documents.documents)
Range Command for Python SDK
The range method is used to retrieve documents in chunks with pagination.
Arguments
Response
The cursor for the next page of documents.
range_documents = index.range(cursor="", limit=1)
print(range_documents.documents)
range_documents = index.range(
cursor=range_documents.next_cursor,
limit=3
)
print(range_documents.documents)
Was this page helpful?
range_documents = index.range(cursor="", limit=1)
print(range_documents.documents)
range_documents = index.range(
cursor=range_documents.next_cursor,
limit=3
)
print(range_documents.documents)
Assistant
Responses are generated using AI and may contain mistakes.