# Copyright 2017 Yahoo Holdings. 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 # index-to: from, sender, address, header, default, all match: prefix } field replyto type raw { indexing: summary | index # index-to: replyto match: prefix } field to type string { indexing: summary | index # index-to: to, recipient, address, header, default, all match: prefix } field cc type string { indexing: index # index-to: cc, recipient, address, header, default, all match: prefix } field bcc type string { indexing: index # index-to: bcc match: prefix } field subject type string { indexing: summary | index # index-to: subject, header, default, all match: prefix } field mailbody type raw { indexing: summary | index # index-to: mailbody, default, all match: substring body } field attachmentcount type int { indexing: summary | index body } field attachmentnames type string { indexing: index # index-to: attachmentname, all body } field attachmenttypes type string { indexing: index # index-to: attachmenttype, all body } field attachmentlanguages type string { indexing: index match: prefix body } field attachmentcontent type string { indexing: summary | index # index-to: attachment, all match: prefix body } field attachments type raw[] { body } } document-summary default { summary snippet type string { dynamic source: body, attachmentcontent } } }