# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. schema mail { stemming: none document mail { field URI type uri { indexing: summary summary-to: default, mailid } field mailid type string { indexing: summary | index match: prefix summary-to: default, mailid } field date type int { indexing: summary | attribute | index match: prefix } field from type string { indexing: summary | index match: prefix } field replyto type string { indexing: summary | index match: prefix } field to type string { indexing: summary | index match: prefix } field cc type string { indexing: index match: prefix } field bcc type string { indexing: index match: prefix } field subject type string { indexing: summary | index match: prefix } field body type string { indexing: summary | index match: substring } field attachmentcount type int { indexing: summary | index } field attachmentnames type string { indexing: index } field attachmenttypes type string { indexing: index } field attachmentlanguages type string { indexing: index match: prefix } field attachmentcontent type string { indexing: summary | index match: prefix } field attachments type raw[] {} } field snippet type string { indexing: (input body | to_string) . (input attachmentcontent | to_string) | summary summary: dynamic } }