IndexQueueStatus
Represents the processing state of a search index queue.
This object can be configured from the WebUI under Management › Tasks › Index Queue
Fields
Section titled “Fields”Type:
IndexType· server-setSearch index the queue belongs to
partition
Section titled “partition”Type:
UnsignedInt· server-set · default:0Account or telemetry bucket the queued documents belong to
queuedUpdates
Section titled “queuedUpdates”Type:
UnsignedInt· server-set · default:0Number of documents awaiting indexing
queuedDeletions
Section titled “queuedDeletions”Type:
UnsignedInt· server-set · default:0Number of documents awaiting deletion from the index
status
Section titled “status”Type:
IndexStatus· default:{"@type":"Running"}Current processing state of the queue
JMAP API
Section titled “JMAP API”The IndexQueueStatus object is available via the urn:stalwart:jmap capability.
x:IndexQueueStatus/get
Section titled “x:IndexQueueStatus/get”This is a standard Foo/get method as defined in RFC 8620, Section 5.1.
This method requires the sysIndexQueueStatusGet permission.
curl -X POST https://mail.example.com/jmap/ \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:IndexQueueStatus/get", { "ids": [ "id1" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:IndexQueueStatus/set
Section titled “x:IndexQueueStatus/set”This is a standard Foo/set method as defined in RFC 8620, Section 5.3.
Supports the update operation only.
This method requires the sysIndexQueueStatusUpdate permission.
curl -X POST https://mail.example.com/jmap/ \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:IndexQueueStatus/set", { "update": { "id1": { "status": { "@type": "Running" } } } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:IndexQueueStatus/query
Section titled “x:IndexQueueStatus/query”This is a standard Foo/query method as defined in RFC 8620, Section 5.5.
This method requires the sysIndexQueueStatusQuery permission.
curl -X POST https://mail.example.com/jmap/ \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:IndexQueueStatus/query", { "filter": {} }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.
stalwart-cli get IndexQueueStatus id1stalwart-cli query IndexQueueStatusUpdate
Section titled “Update”stalwart-cli update IndexQueueStatus id1 --field status='{"@type":"Running"}'Nested types
Section titled “Nested types”IndexStatus
Section titled “IndexStatus”Processing state of a search index queue.
Running: Queue is being processed normally. No additional fields.Failed: Last indexing attempt failed. Carries the fields ofIndexStatusFailed.
IndexStatusFailed
Section titled “IndexStatusFailed”Details of the last failed indexing attempt.
reason
Section titled “reason”Type:
Text· requiredError reported by the last indexing attempt
nextRetry
Section titled “nextRetry”Type:
UTCDateTime· requiredDate and time when indexing will be retried
IndexType
Section titled “IndexType”| Value | Label |
|---|---|
telemetry | Telemetry |
email | |
calendar | Calendar |
contacts | Contacts |
file | File |