aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/mail/mail.sd
blob: 848b67e1b1f40b5355eb66020d3f10278b142d54 (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
# Copyright Yahoo. 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
  }

}