aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/indexschema/indexschema.sd
blob: 47dd8aa79be886239675486511cca7f955fe555e (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema indexschema {

  field searchfield1 type string {}
  field searchfield2 type int {}

  document indexschema {
    struct part {
        field text type string {}
        field name type string {}
    }

    # string fields
    field sa type string {
      indexing: index
      summary: dynamic
    }
    field sb type string {
      indexing: index
    }
    field sc type string {
      indexing: index
    }
    field sd type string {
      indexing: index
      rank:literal
      query-command: "phrase-segmenting false"
    }
    field pos type position {
      indexing: attribute
    }
    field se type string {
      indexing: attribute
    }
    field sf type array<string> {
      indexing: index
    }
    field sg type weightedset<string> {
      indexing: index
    }
    field sh type uri {
      indexing: index
    }
    field si type string {
      indexing: index
      index {
        prefix
      }
    }
    field exact1 type string {
      indexing: index
      match: exact
    }
    field exact2 type string {
      indexing: index
      match {
        exact
      }
    }
    field bm25_field type string {
      indexing: index
      index: enable-bm25
    }

    # integer fields
    field ia type int {
      indexing: index
    }
    field ib type int {
      indexing: index
    }
    field ic type int {
      indexing: attribute
    }
    
    field nostemstring1 type string {
      indexing: index | summary
      index {
        stemming: none
      }
    }

    field nostemstring2 type string {
      indexing: index | summary
      index {
        stemming: none
      }
    }

    field nostemstring3 type string {
      indexing: index | summary
      stemming: none
    }

    field nostemstring4 type string {
      indexing: index | summary
      stemming: none
    }

    field fs9 type string {
      indexing:index|summary
    }

    field f10 type array<part> {
      struct-field text {
        indexing: index|summary
      }
    }
    
  }
  fieldset fs9 {
    fields:se
  }
  fieldset fs1 {
    fields: se, sf, sg
  }
  fieldset fs2 {
    fields: si
  }
  fieldset fs3 {
    fields: ib, ic
  }
  fieldset fs4 {
    fields: sa, sb
  }
  fieldset onlyattrib {
    fields: se
  }
  fieldset exactfields {
    fields: exact1, exact2
  }

  fieldset exactexplicit {
    query-command: "exact ARNOLD"
    fields:sa, sb
    query-command: dynteaser
  }
  
  fieldset exactexplicit2 {
    match {
      exact
      exact-terminator: "Arnold"
    }
    fields:sc, sd
  }

  fieldset gram {
    fields: sc, sd
    match: gram
  }

  fieldset nostem1 {
    fields: nostemstring1, nostemstring2
  }

  fieldset nostem2 {
    fields: nostemstring3, nostemstring4
  }

  fieldset default {
    fields: sb, sc
  }


}