# Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. search 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 body } field attachmentcount type int { indexing: summary | index body } field attachmentnames type string { indexing: index body } field attachmenttypes type string { indexing: index body } field attachmentlanguages type string { indexing: index match: prefix body } field attachmentcontent type string { indexing: summary | index match: prefix body } field attachments type raw[] { body } } field snippet type string { indexing: (input body | to_string) . (input attachmentcontent | to_string) | summary summary: dynamic } }