aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/test/derived/complex/complex.sd
blob: 823afa0e859a36d62ad7a96e254039adf7256433 (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
# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
schema complex {

  document complex {

    field title type string {
      indexing: index | summary
      index default: prefix
      rank-type: about
      query-command: some-custom-command # Some command handled in a qustom searcher
      query-command: some-other
      alias default: some.default
      alias: titlez
      match: token
    }

    field location type string {
    
    }

    field dyntitle type string {
	  indexing: summary
	  summary: dynamic
    }

    field special1 type string {
      indexing: index
      stemming: none
    }

    field special2 type string {
      indexing: index
      stemming: none
    }

    field special3 type string {
      indexing: index
      stemming: none
    }

    field prefixenabled type string {
      indexing: index | attribute
      index: prefix
      normalizing: none
      stemming: shortest
    }

    field source type uri {
      indexing: summary | index
    }

    field docurl type uri {
      indexing: index
      alias docurl: url
    }

    field fleeting type array<float> {
      indexing: index | attribute
    }

    field fleeting2 type float {
      indexing: index | attribute
    }

    field foundat type long {
      indexing: index 
    }

    field collapseby type int {
      indexing: index 
    }

    field yEaR type int {

    }

    field stringfield type string {
      indexing: summary | index
    }

    field exactemento type string {
      indexing: index
    }

    field exactagain type string {
      indexing: index
    }

    field ts type long {
       indexing: attribute 
    }

	field combineda type int {
	  indexing: index
	}

	field combinedb type string {
	  indexing: index
	}

    field category type string {
    
    }

  }

  field woe type string {
    indexing: input location | summary | index
  }

  field year_sub type int {
    indexing: input yEaR - 1900 | attribute year_sub
  }

  field year_arr type array<int> {
    indexing: input yEaR | to_array | attribute
  }

  # A field defined outside an index
  field exact type string {
    indexing {
      input title . input category | summary | index;
    }
    stemming: none
    normalizing: none
    rank-type: identity
  }

  # Some experimental ranking changes
  rank-profile experimental inherits default {
  }

  rank-profile other inherits experimental {
    rank-type source: identity
 }
 fieldset default {
   fields: title, stringfield
 }
 fieldset special {
   fields: special1, special2, special3
 }
 raw-as-base64-in-summary : false
 fieldset all {
   fields: combineda, combinedb
 }

}