1 | <?xml version="1.0" encoding="UTF-8" ?> |
---|
2 | <!-- |
---|
3 | Licensed to the Apache Software Foundation (ASF) under one or more |
---|
4 | contributor license agreements. See the NOTICE file distributed with |
---|
5 | this work for additional information regarding copyright ownership. |
---|
6 | The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
7 | (the "License"); you may not use this file except in compliance with |
---|
8 | the License. You may obtain a copy of the License at |
---|
9 | |
---|
10 | http://www.apache.org/licenses/LICENSE-2.0 |
---|
11 | |
---|
12 | Unless required by applicable law or agreed to in writing, software |
---|
13 | distributed under the License is distributed on an "AS IS" BASIS, |
---|
14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
15 | See the License for the specific language governing permissions and |
---|
16 | limitations under the License. |
---|
17 | --> |
---|
18 | |
---|
19 | <!-- |
---|
20 | This is the Solr schema file. This file should be named "schema.xml" and |
---|
21 | should be in the conf directory under the solr home |
---|
22 | (i.e. ./solr/conf/schema.xml by default) |
---|
23 | or located where the classloader for the Solr webapp can find it. |
---|
24 | |
---|
25 | This example schema is the recommended starting point for users. |
---|
26 | It should be kept correct and concise, usable out-of-the-box. |
---|
27 | |
---|
28 | For more information, on how to customize this file, please see |
---|
29 | http://wiki.apache.org/solr/SchemaXml |
---|
30 | |
---|
31 | PERFORMANCE NOTE: this schema includes many optional features and should not |
---|
32 | be used for benchmarking. To improve performance one could |
---|
33 | - set stored="false" for all fields possible (esp large fields) when you |
---|
34 | only need to search on the field but don't need to return the original |
---|
35 | value. |
---|
36 | - set indexed="false" if you don't need to search on the field, but only |
---|
37 | return the field as a result of searching on other indexed fields. |
---|
38 | - remove all unneeded copyField statements |
---|
39 | - for best index size and searching performance, set "index" to false |
---|
40 | for all general text fields, use copyField to copy them to the |
---|
41 | catchall "text" field, and use that for searching. |
---|
42 | - For maximum indexing performance, use the StreamingUpdateSolrServer |
---|
43 | java client. |
---|
44 | - Remember to run the JVM in server mode, and use a higher logging level |
---|
45 | that avoids logging every request |
---|
46 | --> |
---|
47 | |
---|
48 | <schema name="VLO_SOLR" version="1.2"> |
---|
49 | <!-- attribute "name" is the name of this schema and is only used for display purposes. |
---|
50 | Applications should change this to reflect the nature of the search collection. |
---|
51 | version="1.2" is Solr's version number for the schema syntax and semantics. It should |
---|
52 | not normally be changed by applications. |
---|
53 | 1.0: multiValued attribute did not exist, all fields are multiValued by nature |
---|
54 | 1.1: multiValued attribute introduced, false by default |
---|
55 | 1.2: omitTermFreqAndPositions attribute introduced, true by default except for text fields. |
---|
56 | --> |
---|
57 | |
---|
58 | <types> |
---|
59 | <!-- field type definitions. The "name" attribute is |
---|
60 | just a label to be used by field definitions. The "class" |
---|
61 | attribute and any other attributes determine the real |
---|
62 | behavior of the fieldType. |
---|
63 | Class names starting with "solr" refer to java classes in the |
---|
64 | org.apache.solr.analysis package. |
---|
65 | --> |
---|
66 | |
---|
67 | <!-- The StrField type is not analyzed, but indexed/stored verbatim. |
---|
68 | - StrField and TextField support an optional compressThreshold which |
---|
69 | limits compression (if enabled in the derived fields) to values which |
---|
70 | exceed a certain size (in characters). |
---|
71 | --> |
---|
72 | <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/> |
---|
73 | |
---|
74 | <fieldType name="metadataSource" class="solr.TextField" sortMissingLast="false" omitNorms="true" indexed="false" stored="true" /> |
---|
75 | |
---|
76 | <!-- boolean type: "true" or "false" --> |
---|
77 | <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" omitNorms="true"/> |
---|
78 | <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> |
---|
79 | <fieldtype name="binary" class="solr.BinaryField"/> |
---|
80 | |
---|
81 | <!-- The optional sortMissingLast and sortMissingFirst attributes are |
---|
82 | currently supported on types that are sorted internally as strings. |
---|
83 | This includes "string","boolean","sint","slong","sfloat","sdouble","pdate" |
---|
84 | - If sortMissingLast="true", then a sort on this field will cause documents |
---|
85 | without the field to come after documents with the field, |
---|
86 | regardless of the requested sort order (asc or desc). |
---|
87 | - If sortMissingFirst="true", then a sort on this field will cause documents |
---|
88 | without the field to come before documents with the field, |
---|
89 | regardless of the requested sort order. |
---|
90 | - If sortMissingLast="false" and sortMissingFirst="false" (the default), |
---|
91 | then default lucene sorting will be used which places docs without the |
---|
92 | field first in an ascending sort and last in a descending sort. |
---|
93 | --> |
---|
94 | |
---|
95 | <!-- |
---|
96 | Default numeric field types. For faster range queries, consider the tint/tfloat/tlong/tdouble types. |
---|
97 | --> |
---|
98 | <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> |
---|
99 | <fieldType name="float" class="solr.TrieFloatField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> |
---|
100 | <fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> |
---|
101 | <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> |
---|
102 | |
---|
103 | <!-- |
---|
104 | Numeric field types that index each value at various levels of precision |
---|
105 | to accelerate range queries when the number of values between the range |
---|
106 | endpoints is large. See the javadoc for NumericRangeQuery for internal |
---|
107 | implementation details. |
---|
108 | |
---|
109 | Smaller precisionStep values (specified in bits) will lead to more tokens |
---|
110 | indexed per value, slightly larger index size, and faster range queries. |
---|
111 | A precisionStep of 0 disables indexing at different precision levels. |
---|
112 | --> |
---|
113 | <fieldType name="tint" class="solr.TrieIntField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> |
---|
114 | <fieldType name="tfloat" class="solr.TrieFloatField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> |
---|
115 | <fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> |
---|
116 | <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> |
---|
117 | |
---|
118 | <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and |
---|
119 | is a more restricted form of the canonical representation of dateTime |
---|
120 | http://www.w3.org/TR/xmlschema-2/#dateTime |
---|
121 | The trailing "Z" designates UTC time and is mandatory. |
---|
122 | Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z |
---|
123 | All other components are mandatory. |
---|
124 | |
---|
125 | Expressions can also be used to denote calculations that should be |
---|
126 | performed relative to "NOW" to determine the value, ie... |
---|
127 | |
---|
128 | NOW/HOUR |
---|
129 | ... Round to the start of the current hour |
---|
130 | NOW-1DAY |
---|
131 | ... Exactly 1 day prior to now |
---|
132 | NOW/DAY+6MONTHS+3DAYS |
---|
133 | ... 6 months and 3 days in the future from the start of |
---|
134 | the current day |
---|
135 | |
---|
136 | Consult the DateField javadocs for more information. |
---|
137 | |
---|
138 | Note: For faster range queries, consider the tdate type |
---|
139 | --> |
---|
140 | <fieldType name="date" class="solr.TrieDateField" omitNorms="true" precisionStep="0" positionIncrementGap="0"/> |
---|
141 | |
---|
142 | <!-- A Trie based date field for faster date range queries and date faceting. --> |
---|
143 | <fieldType name="tdate" class="solr.TrieDateField" omitNorms="true" precisionStep="6" positionIncrementGap="0"/> |
---|
144 | |
---|
145 | |
---|
146 | <!-- |
---|
147 | Note: |
---|
148 | These should only be used for compatibility with existing indexes (created with older Solr versions) |
---|
149 | or if "sortMissingFirst" or "sortMissingLast" functionality is needed. Use Trie based fields instead. |
---|
150 | |
---|
151 | Plain numeric field types that store and index the text |
---|
152 | value verbatim (and hence don't support range queries, since the |
---|
153 | lexicographic ordering isn't equal to the numeric ordering) |
---|
154 | --> |
---|
155 | <fieldType name="pint" class="solr.IntField" omitNorms="true"/> |
---|
156 | <fieldType name="plong" class="solr.LongField" omitNorms="true"/> |
---|
157 | <fieldType name="pfloat" class="solr.FloatField" omitNorms="true"/> |
---|
158 | <fieldType name="pdouble" class="solr.DoubleField" omitNorms="true"/> |
---|
159 | <fieldType name="pdate" class="solr.DateField" sortMissingLast="true" omitNorms="true"/> |
---|
160 | |
---|
161 | |
---|
162 | <!-- |
---|
163 | Note: |
---|
164 | These should only be used for compatibility with existing indexes (created with older Solr versions) |
---|
165 | or if "sortMissingFirst" or "sortMissingLast" functionality is needed. Use Trie based fields instead. |
---|
166 | |
---|
167 | Numeric field types that manipulate the value into |
---|
168 | a string value that isn't human-readable in its internal form, |
---|
169 | but with a lexicographic ordering the same as the numeric ordering, |
---|
170 | so that range queries work correctly. |
---|
171 | --> |
---|
172 | <fieldType name="sint" class="solr.SortableIntField" sortMissingLast="true" omitNorms="true"/> |
---|
173 | <fieldType name="slong" class="solr.SortableLongField" sortMissingLast="true" omitNorms="true"/> |
---|
174 | <fieldType name="sfloat" class="solr.SortableFloatField" sortMissingLast="true" omitNorms="true"/> |
---|
175 | <fieldType name="sdouble" class="solr.SortableDoubleField" sortMissingLast="true" omitNorms="true"/> |
---|
176 | |
---|
177 | |
---|
178 | <!-- The "RandomSortField" is not used to store or search any |
---|
179 | data. You can declare fields of this type it in your schema |
---|
180 | to generate pseudo-random orderings of your docs for sorting |
---|
181 | purposes. The ordering is generated based on the field name |
---|
182 | and the version of the index, As long as the index version |
---|
183 | remains unchanged, and the same field name is reused, |
---|
184 | the ordering of the docs will be consistent. |
---|
185 | If you want different psuedo-random orderings of documents, |
---|
186 | for the same version of the index, use a dynamicField and |
---|
187 | change the name |
---|
188 | --> |
---|
189 | <fieldType name="random" class="solr.RandomSortField" indexed="true" /> |
---|
190 | |
---|
191 | <!-- solr.TextField allows the specification of custom text analyzers |
---|
192 | specified as a tokenizer and a list of token filters. Different |
---|
193 | analyzers may be specified for indexing and querying. |
---|
194 | |
---|
195 | The optional positionIncrementGap puts space between multiple fields of |
---|
196 | this type on the same document, with the purpose of preventing false phrase |
---|
197 | matching across fields. |
---|
198 | |
---|
199 | For more info on customizing your analyzer chain, please see |
---|
200 | http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters |
---|
201 | --> |
---|
202 | |
---|
203 | <!-- One can also specify an existing Analyzer class that has a |
---|
204 | default constructor via the class attribute on the analyzer element |
---|
205 | <fieldType name="text_greek" class="solr.TextField"> |
---|
206 | <analyzer class="org.apache.lucene.analysis.el.GreekAnalyzer"/> |
---|
207 | </fieldType> |
---|
208 | --> |
---|
209 | |
---|
210 | <!-- A text field that only splits on whitespace for exact matching of words --> |
---|
211 | <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100"> |
---|
212 | <analyzer> |
---|
213 | <tokenizer class="solr.WhitespaceTokenizerFactory"/> |
---|
214 | </analyzer> |
---|
215 | </fieldType> |
---|
216 | |
---|
217 | <!-- A text field that uses WordDelimiterFilter to enable splitting and matching of |
---|
218 | words on case-change, alpha numeric boundaries, and non-alphanumeric chars, |
---|
219 | so that a query of "wifi" or "wi fi" could match a document containing "Wi-Fi". |
---|
220 | Synonyms and stopwords are customized by external files, and stemming is enabled. |
---|
221 | --> |
---|
222 | <fieldType name="text" class="solr.TextField" positionIncrementGap="100"> |
---|
223 | <analyzer type="index"> |
---|
224 | <tokenizer class="solr.WhitespaceTokenizerFactory"/> |
---|
225 | <!-- in this example, we will only use synonyms at query time |
---|
226 | <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/> |
---|
227 | --> |
---|
228 | <!-- Case insensitive stop word removal. |
---|
229 | add enablePositionIncrements=true in both the index and query |
---|
230 | analyzers to leave a 'gap' for more accurate phrase queries. |
---|
231 | --> |
---|
232 | <filter class="solr.StopFilterFactory" |
---|
233 | ignoreCase="true" |
---|
234 | words="stopwords.txt" |
---|
235 | enablePositionIncrements="true" |
---|
236 | /> |
---|
237 | <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="0"/> |
---|
238 | <filter class="solr.CollationKeyFilterFactory" custom="customCollationRules.bin" strength="primary"/> |
---|
239 | <filter class="solr.LowerCaseFilterFactory"/> |
---|
240 | <filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/> |
---|
241 | </analyzer> |
---|
242 | <analyzer type="query"> |
---|
243 | <tokenizer class="solr.WhitespaceTokenizerFactory"/> |
---|
244 | <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> |
---|
245 | <filter class="solr.StopFilterFactory" |
---|
246 | ignoreCase="true" |
---|
247 | words="stopwords.txt" |
---|
248 | enablePositionIncrements="true" |
---|
249 | /> |
---|
250 | <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/> |
---|
251 | <filter class="solr.CollationKeyFilterFactory" custom="customCollationRules.bin" strength="primary"/> |
---|
252 | <filter class="solr.LowerCaseFilterFactory"/> |
---|
253 | <filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/> |
---|
254 | </analyzer> |
---|
255 | </fieldType> |
---|
256 | |
---|
257 | |
---|
258 | <!-- Less flexible matching, but less false matches. Probably not ideal for product names, |
---|
259 | but may be good for SKUs. Can insert dashes in the wrong place and still match. --> |
---|
260 | <fieldType name="textTight" class="solr.TextField" positionIncrementGap="100" > |
---|
261 | <analyzer> |
---|
262 | <tokenizer class="solr.WhitespaceTokenizerFactory"/> |
---|
263 | <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/> |
---|
264 | <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/> |
---|
265 | <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> |
---|
266 | <filter class="solr.LowerCaseFilterFactory"/> |
---|
267 | <filter class="solr.SnowballPorterFilterFactory" language="English" protected="protwords.txt"/> |
---|
268 | <!-- this filter can remove any duplicate tokens that appear at the same position - sometimes |
---|
269 | possible with WordDelimiterFilter in conjuncton with stemming. --> |
---|
270 | <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> |
---|
271 | </analyzer> |
---|
272 | </fieldType> |
---|
273 | |
---|
274 | |
---|
275 | <!-- A general unstemmed text field - good if one does not know the language of the field --> |
---|
276 | <fieldType name="textgen" class="solr.TextField" positionIncrementGap="100"> |
---|
277 | <analyzer type="index"> |
---|
278 | <tokenizer class="solr.WhitespaceTokenizerFactory"/> |
---|
279 | <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /> |
---|
280 | <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="0"/> |
---|
281 | <filter class="solr.LowerCaseFilterFactory"/> |
---|
282 | </analyzer> |
---|
283 | <analyzer type="query"> |
---|
284 | <tokenizer class="solr.WhitespaceTokenizerFactory"/> |
---|
285 | <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> |
---|
286 | <filter class="solr.StopFilterFactory" |
---|
287 | ignoreCase="true" |
---|
288 | words="stopwords.txt" |
---|
289 | enablePositionIncrements="true" |
---|
290 | /> |
---|
291 | <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/> |
---|
292 | <filter class="solr.LowerCaseFilterFactory"/> |
---|
293 | </analyzer> |
---|
294 | </fieldType> |
---|
295 | |
---|
296 | |
---|
297 | <!-- A general unstemmed text field that indexes tokens normally and also |
---|
298 | reversed (via ReversedWildcardFilterFactory), to enable more efficient |
---|
299 | leading wildcard queries. --> |
---|
300 | <fieldType name="text_rev" class="solr.TextField" positionIncrementGap="100"> |
---|
301 | <analyzer type="index"> |
---|
302 | <tokenizer class="solr.WhitespaceTokenizerFactory"/> |
---|
303 | <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /> |
---|
304 | <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="0"/> |
---|
305 | <filter class="solr.LowerCaseFilterFactory"/> |
---|
306 | <filter class="solr.ReversedWildcardFilterFactory" withOriginal="true" |
---|
307 | maxPosAsterisk="3" maxPosQuestion="2" maxFractionAsterisk="0.33"/> |
---|
308 | </analyzer> |
---|
309 | <analyzer type="query"> |
---|
310 | <tokenizer class="solr.WhitespaceTokenizerFactory"/> |
---|
311 | <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> |
---|
312 | <filter class="solr.StopFilterFactory" |
---|
313 | ignoreCase="true" |
---|
314 | words="stopwords.txt" |
---|
315 | enablePositionIncrements="true" |
---|
316 | /> |
---|
317 | <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/> |
---|
318 | <filter class="solr.LowerCaseFilterFactory"/> |
---|
319 | </analyzer> |
---|
320 | </fieldType> |
---|
321 | |
---|
322 | <!-- charFilter + WhitespaceTokenizer --> |
---|
323 | <!-- |
---|
324 | <fieldType name="textCharNorm" class="solr.TextField" positionIncrementGap="100" > |
---|
325 | <analyzer> |
---|
326 | <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/> |
---|
327 | <tokenizer class="solr.WhitespaceTokenizerFactory"/> |
---|
328 | </analyzer> |
---|
329 | </fieldType> |
---|
330 | --> |
---|
331 | |
---|
332 | <!-- This is an example of using the KeywordTokenizer along |
---|
333 | With various TokenFilterFactories to produce a sortable field |
---|
334 | that does not include some properties of the source text |
---|
335 | --> |
---|
336 | <fieldType name="alphaOnlySort" class="solr.TextField" sortMissingLast="true" omitNorms="true"> |
---|
337 | <analyzer> |
---|
338 | <!-- KeywordTokenizer does no actual tokenizing, so the entire |
---|
339 | input string is preserved as a single token |
---|
340 | --> |
---|
341 | <tokenizer class="solr.KeywordTokenizerFactory"/> |
---|
342 | <!-- The LowerCase TokenFilter does what you expect, which can be |
---|
343 | when you want your sorting to be case insensitive |
---|
344 | --> |
---|
345 | <filter class="solr.LowerCaseFilterFactory" /> |
---|
346 | <!-- The TrimFilter removes any leading or trailing whitespace --> |
---|
347 | <filter class="solr.TrimFilterFactory" /> |
---|
348 | <!-- The PatternReplaceFilter gives you the flexibility to use |
---|
349 | Java Regular expression to replace any sequence of characters |
---|
350 | matching a pattern with an arbitrary replacement string, |
---|
351 | which may include back references to portions of the original |
---|
352 | string matched by the pattern. |
---|
353 | |
---|
354 | See the Java Regular Expression documentation for more |
---|
355 | information on pattern and replacement string syntax. |
---|
356 | |
---|
357 | http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/package-summary.html |
---|
358 | --> |
---|
359 | <filter class="solr.PatternReplaceFilterFactory" |
---|
360 | pattern="([^a-z])" replacement="" replace="all" |
---|
361 | /> |
---|
362 | </analyzer> |
---|
363 | </fieldType> |
---|
364 | |
---|
365 | <fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" > |
---|
366 | <analyzer> |
---|
367 | <tokenizer class="solr.StandardTokenizerFactory"/> |
---|
368 | <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/> |
---|
369 | </analyzer> |
---|
370 | </fieldtype> |
---|
371 | |
---|
372 | <fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > |
---|
373 | <analyzer> |
---|
374 | <tokenizer class="solr.WhitespaceTokenizerFactory"/> |
---|
375 | <!-- |
---|
376 | The DelimitedPayloadTokenFilter can put payloads on tokens... for example, |
---|
377 | a token of "foo|1.4" would be indexed as "foo" with a payload of 1.4f |
---|
378 | Attributes of the DelimitedPayloadTokenFilterFactory : |
---|
379 | "delimiter" - a one character delimiter. Default is | (pipe) |
---|
380 | "encoder" - how to encode the following value into a playload |
---|
381 | float -> org.apache.lucene.analysis.payloads.FloatEncoder, |
---|
382 | integer -> o.a.l.a.p.IntegerEncoder |
---|
383 | identity -> o.a.l.a.p.IdentityEncoder |
---|
384 | Fully Qualified class name implementing PayloadEncoder, Encoder must have a no arg constructor. |
---|
385 | --> |
---|
386 | <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> |
---|
387 | </analyzer> |
---|
388 | </fieldtype> |
---|
389 | |
---|
390 | <!-- lowercases the entire field value, keeping it as a single token. --> |
---|
391 | <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> |
---|
392 | <analyzer> |
---|
393 | <tokenizer class="solr.KeywordTokenizerFactory"/> |
---|
394 | <filter class="solr.LowerCaseFilterFactory" /> |
---|
395 | </analyzer> |
---|
396 | </fieldType> |
---|
397 | |
---|
398 | |
---|
399 | <!-- since fields of this type are by default not stored or indexed, |
---|
400 | any data added to them will be ignored outright. --> |
---|
401 | <fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> |
---|
402 | |
---|
403 | <!-- field for autocompletion --> |
---|
404 | <fieldType name="textauto" class="solr.TextField"> |
---|
405 | <analyzer> |
---|
406 | <tokenizer class="solr.LowerCaseTokenizerFactory"/> |
---|
407 | </analyzer> |
---|
408 | </fieldType> |
---|
409 | </types> |
---|
410 | |
---|
411 | |
---|
412 | |
---|
413 | <fields> |
---|
414 | <field name="id" type="string" indexed="true" stored="true" required="true"/> |
---|
415 | <field name="collection" type="string" indexed="true" stored="true" multiValued="true" /> |
---|
416 | <field name="name" type="string" indexed="true" stored="true" multiValued="false"/> |
---|
417 | <field name="projectName" type="string" indexed="true" stored="true" multiValued="true"/> |
---|
418 | <field name="continent" type="string" indexed="true" stored="true" multiValued="true"/> |
---|
419 | <field name="country" type="string" indexed="true" stored="true" multiValued="true"/> |
---|
420 | <field name="language" type="string" indexed="true" stored="true" multiValued="true" /> |
---|
421 | <field name="organisation" type="string" indexed="true" stored="true" multiValued="true"/> |
---|
422 | <field name="genre" type="string" indexed="true" stored="true" multiValued="true"/> |
---|
423 | <field name="subject" type="string" indexed="true" stored="true" multiValued="true" /> |
---|
424 | <field name="description" type="text" indexed="true" stored="true" multiValued="true" /> |
---|
425 | <field name="year" type="string" indexed="true" stored="true" multiValued="true" /> |
---|
426 | <field name="resourceType" type="string" indexed="true" stored="true" multiValued="true" /> |
---|
427 | <field name="dataProvider" type="string" indexed="true" stored="true" multiValued="false" /> |
---|
428 | <field name="nationalProject" type="string" indexed="true" stored="true" multiValued="true" /> |
---|
429 | <field name="tag" type="text" indexed="true" stored="true" multiValued="true"/> |
---|
430 | <field name="text" type="text" indexed="true" stored="false" multiValued="true"/> |
---|
431 | |
---|
432 | |
---|
433 | <field name="_fileName" type="string" indexed="true" stored="true" multiValued="false" /> |
---|
434 | <field name="_resourceRef" type="string" indexed="true" stored="true" multiValued="true" /> |
---|
435 | <field name="_componentProfile" type="string" indexed="true" stored="true" multiValued="false" /> |
---|
436 | <field name="_contentSearchRef" type="string" indexed="true" stored="true" multiValued="true" /> |
---|
437 | <field name="_landingPageRef" type="string" indexed="true" stored="true" multiValued="true" /> |
---|
438 | <field name="metadataSource" type="metadataSource" indexed="false" stored="true" multiValued="true" /> |
---|
439 | <field name="languages" type="string" indexed="true" stored="true" multiValued="true" /> |
---|
440 | |
---|
441 | <!-- Field for autocompletion (suggester) --> |
---|
442 | <field name="_suggester" type="textauto" indexed="true" stored="false"/> |
---|
443 | <copyField source="name" dest="_suggester"/> |
---|
444 | </fields> |
---|
445 | |
---|
446 | <uniqueKey>id</uniqueKey> |
---|
447 | <defaultSearchField>text</defaultSearchField> |
---|
448 | |
---|
449 | <solrQueryParser defaultOperator="AND"/> |
---|
450 | |
---|
451 | </schema> |
---|