Get Index Status
Retrieves the current status of an indexed document.
Endpoint
Path Parameters
Parameter | Type | Description |
---|---|---|
document_id | string | The unique identifier of the document. |
Usage
Example URL:
The document_id
in the URL path specifies the unique identifier of the document for which you want to retrieve the status.
Response
Field | Type | Description |
---|---|---|
document_id | string | The ID of the document. |
status | string | The current status of the indexed document. |
Possible status
values
Status | Description |
---|---|
queued | Document is in the indexing queue |
processing | Document is being processed |
indexed | Document has been successfully indexed |
failed | Indexing process failed |
Example Response
Error Responses
404 Not Found
: Document not found- This occurs when the specified document_id is not found in the index queue or database.
Status Transition Flow
The typical status transition flow for a document is as follows:
queued
: Initial status when a document is submitted for indexingprocessing
: The document is being analyzed and indexedindexed
: The document has been successfully added to the search index
If an error occurs during the indexing process, the status may change to failed
.
Handling Failed Indexing
If a document's status is failed
, you may want to:
- Check your document for any issues (e.g., invalid format, corrupted data)
- Verify that the document meets all requirements (e.g., size limits, allowed types)
- Resubmit the document using the Index Document endpoint
If the problem persists, contact the API support team for further assistance.