Skip to content

IndexQueueStatus

Represents the processing state of a search index queue.

This object can be configured from the WebUI under Management › Tasks › Index Queue

Type: IndexType · server-set

Search index the queue belongs to

Type: UnsignedInt · server-set · default: 0

Account or telemetry bucket the queued documents belong to

Type: UnsignedInt · server-set · default: 0

Number of documents awaiting indexing

Type: UnsignedInt · server-set · default: 0

Number of documents awaiting deletion from the index

Type: IndexStatus · default: {"@type":"Running"}

Current processing state of the queue

The IndexQueueStatus object is available via the urn:stalwart:jmap capability.

This is a standard Foo/get method as defined in RFC 8620, Section 5.1.

This method requires the sysIndexQueueStatusGet permission.

Terminal window
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"
]
}'

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.

Terminal window
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"
]
}'

This is a standard Foo/query method as defined in RFC 8620, Section 5.5.

This method requires the sysIndexQueueStatusQuery permission.

Terminal window
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.

Terminal window
stalwart-cli get IndexQueueStatus id1
Terminal window
stalwart-cli query IndexQueueStatus
Terminal window
stalwart-cli update IndexQueueStatus id1 --field status='{"@type":"Running"}'

Processing state of a search index queue.

  • Running: Queue is being processed normally. No additional fields.
  • Failed: Last indexing attempt failed. Carries the fields of IndexStatusFailed.

Details of the last failed indexing attempt.

Type: Text · required

Error reported by the last indexing attempt

Type: UTCDateTime · required

Date and time when indexing will be retried

ValueLabel
telemetryTelemetry
emailEmail
calendarCalendar
contactsContacts
fileFile