summaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/documentderiver/mail.sd
blob: 77195a5273ca5f09211be2944d83702dddf66e81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# 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
      # 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
     }

  }

}