Skip to content

Search

Configures full-text search indexing for emails, calendars, contacts, files, and tracing.

This object can be configured from the WebUI under Settings › Search

Type: UnsignedInt · default: 100 · min: 1

Number of items to process in each batch during indexing operations

Type: Locale · default: "en-US"

Default language to use when language detection is not possible

Type: Set<Locale> · default: {"en-US":true}

List of languages to enable for full-text search

Type: Boolean · default: true

Enable full-text search indexing for calendar data

Type: Set<SearchCalendarField> · default: {"attendee":true,"description":true,"location":true,"owner":true,"title":true}

List of calendar fields to index

Type: Boolean · default: true

Enable full-text search indexing for contacts data

Type: Set<SearchContactField> · default: {"address":true,"email":true,"kind":true,"member":true,"name":true,"nickname":true,"note":true,"onlineService":true,"organization":true,"phone":true}

List of contact fields to index

Type: Boolean · default: true

Enable full-text search indexing for email content and metadata

Type: Set<SearchEmailField> · default: {"attachment":true,"bcc":true,"body":true,"cc":true,"from":true,"subject":true,"to":true}

List of email fields to index

Type: Boolean · enterprise · default: true

Enable full-text search indexing for tracing data

Type: UnsignedInt · default: 5 · min: 1

Maximum number of indexing tasks that run at the same time

Type: Boolean · default: true

Enable full-text search indexing for file storage content (file names are always searchable)

Type: Size · default: 67108864 · min: 1

Maximum size in bytes of a document (file or email attachment) from which text is extracted for indexing

Type: Size · default: 4194304 · min: 1

Maximum amount of text in bytes extracted from a single document for indexing

Type: Size · default: 268435456 · min: 1

Maximum number of bytes decompressed while extracting text from a single document

Type: Size · default: 67108864 · min: 1

Maximum decompressed size in bytes of a single part (XML part, EPUB chapter or PDF stream) inside a document

Type: UnsignedInt · default: 10000 · min: 1

Maximum number of parts (XML parts, slides, sheets or chapters) read from a single document

Type: UnsignedInt · default: 10000 · min: 1

Maximum number of ZIP entries accepted in an Office, OpenDocument or EPUB file

Type: UnsignedInt · default: 1048576 · min: 1

Maximum number of objects in a PDF cross-reference table

Type: UnsignedInt · default: 256 · min: 1

Maximum group nesting depth of an RTF document

The Search singleton is available via the urn:stalwart:jmap capability.

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

For singletons, the ids argument should be the literal singleton (or null to return the single instance).

This method requires the sysSearchGet permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:Search/get",
{
"ids": [
"singleton"
]
},
"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.

For singletons, only the update argument with id singleton is accepted; create and destroy arguments are rejected.

This method requires the sysSearchUpdate permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:Search/set",
{
"update": {
"singleton": {
"indexBatchSize": 100
}
}
},
"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 Search
Terminal window
stalwart-cli update Search --field indexBatchSize=100
ValueLabel
titleEvent Title
descriptionEvent Description
locationEvent Location
ownerEvent Owner
attendeeEvent Attendee
ValueLabel
memberGroup Member
kindContact Kind
nameContact Name
nicknameContact Nickname
organizationContact Organization
emailContact Email
phoneContact Phone
onlineServiceContact Online Service
addressContact Address
noteContact Note
ValueLabel
fromFrom Address
toTo Address
ccCc Address
bccBcc Address
subjectSubject
bodyBody Content
attachmentAttachment Content
headersEmail Headers