1 <?xml version="1.0" encoding="UTF-8" ?>
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
10 http://www.apache.org/licenses/LICENSE-2.0
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.
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.
25 This example schema is the recommended starting point for users.
26 It should be kept correct and concise, usable out-of-the-box.
28 For more information, on how to customize this file, please see
29 http://wiki.apache.org/solr/SchemaXml
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
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 ConcurrentUpdateSolrServer
44 - Remember to run the JVM in server mode, and use a higher logging level
45 that avoids logging every request
48 <schema name="reddit" version="1.5">
49 <!-- attribute "name" is the name of this schema and is only used for display purposes.
50 version="x.y" is Solr's version number for the schema syntax and
51 semantics. It should not normally be changed by applications.
53 1.0: multiValued attribute did not exist, all fields are multiValued
55 1.1: multiValued attribute introduced, false by default
56 1.2: omitTermFreqAndPositions attribute introduced, true by default
57 except for text fields.
58 1.3: removed optional field compress feature
59 1.4: autoGeneratePhraseQueries attribute introduced to drive QueryParser
60 behavior when a single string produces multiple tokens. Defaults
61 to off for version >= 1.4
62 1.5: omitNorms defaults to true for primitive field types
63 (int, float, boolean, string...)
67 <!-- Valid attributes for fields:
68 name: mandatory - the name for the field
69 type: mandatory - the name of a field type from the
70 <types> fieldType section
71 indexed: true if this field should be indexed (searchable or sortable)
72 stored: true if this field should be retrievable
73 docValues: true if this field should have doc values. Doc values are
74 useful for faceting, grouping, sorting and function queries. Although not
75 required, doc values will make the index faster to load, more
76 NRT-friendly and more memory-efficient. They however come with some
77 limitations: they are currently only supported by StrField, UUIDField
78 and all Trie*Fields, and depending on the field type, they might
79 require the field to be single-valued, be required or have a default
80 value (check the documentation of the field type you're interested in
82 multiValued: true if this field may contain multiple values per document
83 omitNorms: (expert) set to true to omit the norms associated with
84 this field (this disables length normalization and index-time
85 boosting for the field, and saves some memory). Only full-text
86 fields or fields that need an index-time boost need norms.
87 Norms are omitted for primitive (non-analyzed) types by default.
88 termVectors: [false] set to true to store the term vector for a
90 When using MoreLikeThis, fields used for similarity should be
91 stored for best performance.
92 termPositions: Store position information with the term vector.
93 This will increase storage costs.
94 termOffsets: Store offset information with the term vector. This
95 will increase storage costs.
96 required: The field is required. It will throw an error if the
98 default: a value that should be used if no value is specified
99 when adding a document.
102 <!-- field names should consist of alphanumeric or underscore characters only and
103 not start with a digit. This is not currently strictly enforced,
104 but other field names will not have first class support from all components
105 and back compatibility is not guaranteed. Names with both leading and
106 trailing underscores (e.g. _version_) are reserved.
109 <!-- If you remove this field, you must _also_ disable the update log in solrconfig.xml
110 or Solr won't start. _version_ and update log are required for SolrCloud
112 <field name="_version_" type="long" indexed="true" stored="true"/>
114 <!-- points to the root document of a block of nested documents. Required for nested
115 document support, may be removed otherwise
117 <field name="_root_" type="string" indexed="true" stored="false"/>
119 <!-- Only remove the "id" field if you have a very good reason to. While not strictly
120 required, it is highly recommended. A <uniqueKey> is present in almost all Solr
121 installations. See the <uniqueKey> declaration below where <uniqueKey> is set to "id".
123 <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />
125 <field name="version" type="int" indexed="true" stored="true"/>
126 <field name="ups" type="int" indexed="true" stored="true"/>
127 <field name="downs" type="int" indexed="true" stored="true"/>
128 <field name="activity" type="int" indexed="true" stored="true"/>
129 <field name="num_comments" type="int" indexed="true" stored="true"/>
130 <field name="fullname" type="text_general" indexed="true" stored="true"/>
131 <field name="subreddit" type="text_general" indexed="true" stored="true"/>
132 <field name="reddit" type="text_general" indexed="true" stored="true"/>
133 <field name="title" type="text_general" indexed="true" stored="true"/>
134 <field name="sr_id" type="int" indexed="true" stored="true"/>
135 <field name="timestamp" type="int" indexed="true" stored="true"/>
136 <field name="over18" type="boolean" indexed="true" stored="true"/>
137 <field name="nsfw" type="boolean" indexed="true" stored="true"/>
138 <field name="self" type="boolean" indexed="true" stored="true"/>
139 <field name="selftext" type="text_general" indexed="true" stored="true"/>
140 <field name="is_self" type="boolean" indexed="true" stored="true"/>
141 <field name="author_fullname" type="text_general" indexed="true" stored="true"/>
142 <field name="author" type="text_general" indexed="true" stored="true"/>
143 <field name="type_id" type="int" indexed="true" stored="true"/>
144 <field name="flair" type="text_general" indexed="true" stored="true"/>
145 <field name="flair_css_class" type="text_general" indexed="true" stored="true"/>
146 <field name="flair_text" type="text_general" indexed="true" stored="true"/>
147 <field name="name" type="text_general" indexed="true" stored="true"/>
148 <field name="url" type="text_general" indexed="true" stored="true"/>
149 <field name="type" type="text_general" indexed="true" stored="true"/>
150 <field name="language" type="text_general" indexed="true" stored="true"/>
151 <field name="header_title" type="text_general" indexed="true" stored="true"/>
152 <field name="description" type="text_general" indexed="true" stored="true"/>
153 <field name="sidebar" type="text_general" indexed="true" stored="true"/>
154 <field name="link_type" type="text_general" indexed="true" stored="true"/>
155 <field name="actvity" type="int" indexed="true" stored="true"/>
156 <field name="subscribers" type="int" indexed="true" stored="true"/>
157 <field name="site" type="text_general" indexed="true" stored="true"/>
160 <!-- catchall field, containing all other searchable text fields (implemented
161 via copyField further on in this schema -->
162 <field name="text" type="text_general" indexed="true" stored="false" multiValued="true"/>
164 <!-- catchall text field that indexes tokens both normally and in reverse for efficient
165 leading wildcard queries. -->
166 <field name="text_rev" type="text_general_rev" indexed="true" stored="false" multiValued="true"/>
168 <!-- non-tokenized version of manufacturer to make it easier to sort or group
169 results by manufacturer. copied from "manu" via copyField -->
170 <field name="manu_exact" type="string" indexed="true" stored="false"/>
172 <field name="payloads" type="payloads" indexed="true" stored="true"/>
176 Some fields such as popularity and manu_exact could be modified to
178 <field name="popularity" type="int" indexed="true" stored="true" docValues="true" />
179 <field name="manu_exact" type="string" indexed="false" stored="false" docValues="true" />
180 <field name="cat" type="string" indexed="true" stored="true" docValues="true" multiValued="true"/>
183 Although it would make indexing slightly slower and the index bigger, it
184 would also make the index faster to load, more memory-efficient and more
188 <!-- Dynamic field definitions allow using convention over configuration
189 for fields via the specification of patterns to match field names.
190 EXAMPLE: name="*_i" will match any field ending in _i (like myid_i, z_i)
191 RESTRICTION: the glob-like pattern in the name attribute must have
192 a "*" only at the start or the end. -->
194 <dynamicField name="*_i" type="int" indexed="true" stored="true"/>
195 <dynamicField name="*_is" type="int" indexed="true" stored="true" multiValued="true"/>
196 <dynamicField name="*_s" type="string" indexed="true" stored="true" />
197 <dynamicField name="*_ss" type="string" indexed="true" stored="true" multiValued="true"/>
198 <dynamicField name="*_l" type="long" indexed="true" stored="true"/>
199 <dynamicField name="*_ls" type="long" indexed="true" stored="true" multiValued="true"/>
200 <dynamicField name="*_t" type="text_general" indexed="true" stored="true"/>
201 <dynamicField name="*_txt" type="text_general" indexed="true" stored="true" multiValued="true"/>
202 <dynamicField name="*_en" type="text_en" indexed="true" stored="true" multiValued="true"/>
203 <dynamicField name="*_b" type="boolean" indexed="true" stored="true"/>
204 <dynamicField name="*_bs" type="boolean" indexed="true" stored="true" multiValued="true"/>
205 <dynamicField name="*_f" type="float" indexed="true" stored="true"/>
206 <dynamicField name="*_fs" type="float" indexed="true" stored="true" multiValued="true"/>
207 <dynamicField name="*_d" type="double" indexed="true" stored="true"/>
208 <dynamicField name="*_ds" type="double" indexed="true" stored="true" multiValued="true"/>
210 <!-- Type used to index the lat and lon components for the "location" FieldType -->
211 <dynamicField name="*_coordinate" type="tdouble" indexed="true" stored="false" />
213 <dynamicField name="*_dt" type="date" indexed="true" stored="true"/>
214 <dynamicField name="*_dts" type="date" indexed="true" stored="true" multiValued="true"/>
215 <dynamicField name="*_p" type="location" indexed="true" stored="true"/>
217 <!-- some trie-coded dynamic fields for faster range queries -->
218 <dynamicField name="*_ti" type="tint" indexed="true" stored="true"/>
219 <dynamicField name="*_tl" type="tlong" indexed="true" stored="true"/>
220 <dynamicField name="*_tf" type="tfloat" indexed="true" stored="true"/>
221 <dynamicField name="*_td" type="tdouble" indexed="true" stored="true"/>
222 <dynamicField name="*_tdt" type="tdate" indexed="true" stored="true"/>
224 <dynamicField name="*_c" type="currency" indexed="true" stored="true"/>
226 <dynamicField name="ignored_*" type="ignored" multiValued="true"/>
227 <dynamicField name="attr_*" type="text_general" indexed="true" stored="true" multiValued="true"/>
229 <dynamicField name="random_*" type="random" />
231 <!-- uncomment the following to ignore any fields that don't already match an existing
232 field name or dynamic field, rather than reporting them as an error.
233 alternately, change the type="ignored" to some other type e.g. "text" if you want
234 unknown fields indexed and/or stored by default -->
235 <!--dynamicField name="*" type="ignored" multiValued="true" /-->
240 <!-- Field to use to determine and enforce document uniqueness.
241 Unless this field is marked with required="false", it will be a required field
243 <uniqueKey>id</uniqueKey>
245 <!-- DEPRECATED: The defaultSearchField is consulted by various query parsers when
246 parsing a query string that isn't explicit about the field. Machine (non-user)
247 generated queries are best made explicit, or they can use the "df" request parameter
248 which takes precedence over this.
249 Note: Un-commenting defaultSearchField will be insufficient if your request handler
250 in solrconfig.xml defines "df", which takes precedence. That would need to be removed.
251 <defaultSearchField>text</defaultSearchField> -->
253 <!-- DEPRECATED: The defaultOperator (AND|OR) is consulted by various query parsers
254 when parsing a query string to determine if a clause of the query should be marked as
255 required or optional, assuming the clause isn't already marked by some operator.
256 The default is OR, which is generally assumed so it is not a good idea to change it
257 globally here. The "q.op" request parameter takes precedence over this.
258 <solrQueryParser defaultOperator="OR"/> -->
260 <!-- copyField commands copy one field to another at the time a document
261 is added to the index. It's used either to index the same field differently,
262 or to add multiple fields to the same field for easier/faster searching. -->
264 <copyField source="name" dest="text"/>
265 <copyField source="fullname" dest="text"/>
266 <copyField source="subreddit" dest="text"/>
267 <copyField source="reddit" dest="text"/>
268 <copyField source="author" dest="text"/>
269 <copyField source="author_fullname" dest="text"/>
270 <copyField source="flair" dest="text"/>
271 <copyField source="flair_text" dest="text"/>
272 <copyField source="url" dest="text"/>
273 <copyField source="description" dest="text"/>
274 <copyField source="sidebar" dest="text"/>
275 <copyField source="header_title" dest="text"/>
276 <copyField source="selftext" dest="text"/>
279 <!-- Text fields from SolrCell to search by default in our catch-all field -->
280 <copyField source="title" dest="text"/>
283 <!-- Above, multiple source fields are copied to the [text] field.
284 Another way to map multiple source fields to the same
285 destination field is to use the dynamic field syntax.
286 copyField also supports a maxChars to copy setting. -->
288 <!-- <copyField source="*_t" dest="text" maxChars="3000"/> -->
290 <!-- copy name to alphaNameSort, a field designed for sorting by name -->
291 <!-- <copyField source="name" dest="alphaNameSort"/> -->
294 <!-- field type definitions. The "name" attribute is
295 just a label to be used by field definitions. The "class"
296 attribute and any other attributes determine the real
297 behavior of the fieldType.
298 Class names starting with "solr" refer to java classes in a
299 standard package such as org.apache.solr.analysis
302 <!-- The StrField type is not analyzed, but indexed/stored verbatim.
303 It supports doc values but in that case the field needs to be
304 single-valued and either required or have a default value.
306 <fieldType name="string" class="solr.StrField" sortMissingLast="true" />
308 <!-- boolean type: "true" or "false" -->
309 <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
311 <!-- sortMissingLast and sortMissingFirst attributes are optional attributes are
312 currently supported on types that are sorted internally as strings
313 and on numeric types.
314 This includes "string","boolean", and, as of 3.5 (and 4.x),
315 int, float, long, date, double, including the "Trie" variants.
316 - If sortMissingLast="true", then a sort on this field will cause documents
317 without the field to come after documents with the field,
318 regardless of the requested sort order (asc or desc).
319 - If sortMissingFirst="true", then a sort on this field will cause documents
320 without the field to come before documents with the field,
321 regardless of the requested sort order.
322 - If sortMissingLast="false" and sortMissingFirst="false" (the default),
323 then default lucene sorting will be used which places docs without the
324 field first in an ascending sort and last in a descending sort.
328 Default numeric field types. For faster range queries, consider the tint/tfloat/tlong/tdouble types.
330 These fields support doc values, but they require the field to be
331 single-valued and either be required or have a default value.
333 <fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/>
334 <fieldType name="float" class="solr.TrieFloatField" precisionStep="0" positionIncrementGap="0"/>
335 <fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
336 <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" positionIncrementGap="0"/>
339 Numeric field types that index each value at various levels of precision
340 to accelerate range queries when the number of values between the range
341 endpoints is large. See the javadoc for NumericRangeQuery for internal
342 implementation details.
344 Smaller precisionStep values (specified in bits) will lead to more tokens
345 indexed per value, slightly larger index size, and faster range queries.
346 A precisionStep of 0 disables indexing at different precision levels.
348 <fieldType name="tint" class="solr.TrieIntField" precisionStep="8" positionIncrementGap="0"/>
349 <fieldType name="tfloat" class="solr.TrieFloatField" precisionStep="8" positionIncrementGap="0"/>
350 <fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" positionIncrementGap="0"/>
351 <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/>
353 <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and
354 is a more restricted form of the canonical representation of dateTime
355 http://www.w3.org/TR/xmlschema-2/#dateTime
356 The trailing "Z" designates UTC time and is mandatory.
357 Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
358 All other components are mandatory.
360 Expressions can also be used to denote calculations that should be
361 performed relative to "NOW" to determine the value, ie...
364 ... Round to the start of the current hour
366 ... Exactly 1 day prior to now
367 NOW/DAY+6MONTHS+3DAYS
368 ... 6 months and 3 days in the future from the start of
371 Consult the DateField javadocs for more information.
373 Note: For faster range queries, consider the tdate type
375 <fieldType name="date" class="solr.TrieDateField" precisionStep="0" positionIncrementGap="0"/>
377 <!-- A Trie based date field for faster date range queries and date faceting. -->
378 <fieldType name="tdate" class="solr.TrieDateField" precisionStep="6" positionIncrementGap="0"/>
381 <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
382 <fieldtype name="binary" class="solr.BinaryField"/>
386 These should only be used for compatibility with existing indexes (created with lucene or older Solr versions).
387 Use Trie based fields instead. As of Solr 3.5 and 4.x, Trie based fields support sortMissingFirst/Last
389 Plain numeric field types that store and index the text
390 value verbatim (and hence don't correctly support range queries, since the
391 lexicographic ordering isn't equal to the numeric ordering)
393 NOTE: These field types are deprecated will be completely removed in Solr 5.0!
396 <fieldType name="pint" class="solr.IntField"/>
397 <fieldType name="plong" class="solr.LongField"/>
398 <fieldType name="pfloat" class="solr.FloatField"/>
399 <fieldType name="pdouble" class="solr.DoubleField"/>
400 <fieldType name="pdate" class="solr.DateField" sortMissingLast="true"/>
403 <!-- The "RandomSortField" is not used to store or search any
404 data. You can declare fields of this type it in your schema
405 to generate pseudo-random orderings of your docs for sorting
406 or function purposes. The ordering is generated based on the field
407 name and the version of the index. As long as the index version
408 remains unchanged, and the same field name is reused,
409 the ordering of the docs will be consistent.
410 If you want different psuedo-random orderings of documents,
411 for the same version of the index, use a dynamicField and
412 change the field name in the request.
414 <fieldType name="random" class="solr.RandomSortField" indexed="true" />
416 <!-- solr.TextField allows the specification of custom text analyzers
417 specified as a tokenizer and a list of token filters. Different
418 analyzers may be specified for indexing and querying.
420 The optional positionIncrementGap puts space between multiple fields of
421 this type on the same document, with the purpose of preventing false phrase
422 matching across fields.
424 For more info on customizing your analyzer chain, please see
425 http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
428 <!-- One can also specify an existing Analyzer class that has a
429 default constructor via the class attribute on the analyzer element.
431 <fieldType name="text_greek" class="solr.TextField">
432 <analyzer class="org.apache.lucene.analysis.el.GreekAnalyzer"/>
436 <!-- A text field that only splits on whitespace for exact matching of words -->
437 <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">
439 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
443 <!-- A text type for English text where stopwords and synonyms are managed using the REST API -->
444 <fieldType name="managed_en" class="solr.TextField" positionIncrementGap="100">
446 <tokenizer class="solr.StandardTokenizerFactory"/>
447 <filter class="solr.ManagedStopFilterFactory" managed="english" />
448 <filter class="solr.ManagedSynonymFilterFactory" managed="english" />
452 <!-- A general text field that has reasonable, generic
453 cross-language defaults: it tokenizes with StandardTokenizer,
454 removes stop words from case-insensitive "stopwords.txt"
455 (empty by default), and down cases. At query time only, it
456 also applies synonyms. -->
457 <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100">
458 <analyzer type="index">
459 <tokenizer class="solr.StandardTokenizerFactory"/>
460 <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
461 <!-- in this example, we will only use synonyms at query time
462 <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
464 <filter class="solr.LowerCaseFilterFactory"/>
466 <analyzer type="query">
467 <tokenizer class="solr.StandardTokenizerFactory"/>
468 <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
469 <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
470 <filter class="solr.LowerCaseFilterFactory"/>
474 <!-- A text field with defaults appropriate for English: it
475 tokenizes with StandardTokenizer, removes English stop words
476 (lang/stopwords_en.txt), down cases, protects words from protwords.txt, and
477 finally applies Porter's stemming. The query time analyzer
478 also applies synonyms from synonyms.txt. -->
479 <fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
480 <analyzer type="index">
481 <tokenizer class="solr.StandardTokenizerFactory"/>
482 <!-- in this example, we will only use synonyms at query time
483 <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
485 <!-- Case insensitive stop word removal.
487 <filter class="solr.StopFilterFactory"
489 words="lang/stopwords_en.txt"
491 <filter class="solr.LowerCaseFilterFactory"/>
492 <filter class="solr.EnglishPossessiveFilterFactory"/>
493 <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
494 <!-- Optionally you may want to use this less aggressive stemmer instead of PorterStemFilterFactory:
495 <filter class="solr.EnglishMinimalStemFilterFactory"/>
497 <filter class="solr.PorterStemFilterFactory"/>
499 <analyzer type="query">
500 <tokenizer class="solr.StandardTokenizerFactory"/>
501 <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
502 <filter class="solr.StopFilterFactory"
504 words="lang/stopwords_en.txt"
506 <filter class="solr.LowerCaseFilterFactory"/>
507 <filter class="solr.EnglishPossessiveFilterFactory"/>
508 <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
509 <!-- Optionally you may want to use this less aggressive stemmer instead of PorterStemFilterFactory:
510 <filter class="solr.EnglishMinimalStemFilterFactory"/>
512 <filter class="solr.PorterStemFilterFactory"/>
516 <!-- A text field with defaults appropriate for English, plus
517 aggressive word-splitting and autophrase features enabled.
518 This field is just like text_en, except it adds
519 WordDelimiterFilter to enable splitting and matching of
520 words on case-change, alpha numeric boundaries, and
521 non-alphanumeric chars. This means certain compound word
522 cases will work, for example query "wi fi" will match
523 document "WiFi" or "wi-fi".
525 <fieldType name="text_en_splitting" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true">
526 <analyzer type="index">
527 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
528 <!-- in this example, we will only use synonyms at query time
529 <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
531 <!-- Case insensitive stop word removal.
533 <filter class="solr.StopFilterFactory"
535 words="lang/stopwords_en.txt"
537 <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
538 <filter class="solr.LowerCaseFilterFactory"/>
539 <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
540 <filter class="solr.PorterStemFilterFactory"/>
542 <analyzer type="query">
543 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
544 <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
545 <filter class="solr.StopFilterFactory"
547 words="lang/stopwords_en.txt"
549 <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
550 <filter class="solr.LowerCaseFilterFactory"/>
551 <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
552 <filter class="solr.PorterStemFilterFactory"/>
556 <!-- Less flexible matching, but less false matches. Probably not ideal for product names,
557 but may be good for SKUs. Can insert dashes in the wrong place and still match. -->
558 <fieldType name="text_en_splitting_tight" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true">
560 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
561 <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/>
562 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_en.txt"/>
563 <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
564 <filter class="solr.LowerCaseFilterFactory"/>
565 <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
566 <filter class="solr.EnglishMinimalStemFilterFactory"/>
567 <!-- this filter can remove any duplicate tokens that appear at the same position - sometimes
568 possible with WordDelimiterFilter in conjuncton with stemming. -->
569 <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
573 <!-- Just like text_general except it reverses the characters of
574 each token, to enable more efficient leading wildcard queries. -->
575 <fieldType name="text_general_rev" class="solr.TextField" positionIncrementGap="100">
576 <analyzer type="index">
577 <tokenizer class="solr.StandardTokenizerFactory"/>
578 <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
579 <filter class="solr.LowerCaseFilterFactory"/>
580 <filter class="solr.ReversedWildcardFilterFactory" withOriginal="true"
581 maxPosAsterisk="3" maxPosQuestion="2" maxFractionAsterisk="0.33"/>
583 <analyzer type="query">
584 <tokenizer class="solr.StandardTokenizerFactory"/>
585 <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
586 <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
587 <filter class="solr.LowerCaseFilterFactory"/>
591 <!-- charFilter + WhitespaceTokenizer -->
593 <fieldType name="text_char_norm" class="solr.TextField" positionIncrementGap="100" >
595 <charFilter class="solr.MappingCharFilterFactory" mapping="mapping-ISOLatin1Accent.txt"/>
596 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
601 <!-- This is an example of using the KeywordTokenizer along
602 With various TokenFilterFactories to produce a sortable field
603 that does not include some properties of the source text
605 <fieldType name="alphaOnlySort" class="solr.TextField" sortMissingLast="true" omitNorms="true">
607 <!-- KeywordTokenizer does no actual tokenizing, so the entire
608 input string is preserved as a single token
610 <tokenizer class="solr.KeywordTokenizerFactory"/>
611 <!-- The LowerCase TokenFilter does what you expect, which can be
612 when you want your sorting to be case insensitive
614 <filter class="solr.LowerCaseFilterFactory" />
615 <!-- The TrimFilter removes any leading or trailing whitespace -->
616 <filter class="solr.TrimFilterFactory" />
617 <!-- The PatternReplaceFilter gives you the flexibility to use
618 Java Regular expression to replace any sequence of characters
619 matching a pattern with an arbitrary replacement string,
620 which may include back references to portions of the original
621 string matched by the pattern.
623 See the Java Regular Expression documentation for more
624 information on pattern and replacement string syntax.
626 http://docs.oracle.com/javase/7/docs/api/java/util/regex/package-summary.html
628 <filter class="solr.PatternReplaceFilterFactory"
629 pattern="([^a-z])" replacement="" replace="all"
634 <fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" >
636 <tokenizer class="solr.StandardTokenizerFactory"/>
637 <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
641 <fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" >
643 <tokenizer class="solr.WhitespaceTokenizerFactory"/>
645 The DelimitedPayloadTokenFilter can put payloads on tokens... for example,
646 a token of "foo|1.4" would be indexed as "foo" with a payload of 1.4f
647 Attributes of the DelimitedPayloadTokenFilterFactory :
648 "delimiter" - a one character delimiter. Default is | (pipe)
649 "encoder" - how to encode the following value into a playload
650 float -> org.apache.lucene.analysis.payloads.FloatEncoder,
651 integer -> o.a.l.a.p.IntegerEncoder
652 identity -> o.a.l.a.p.IdentityEncoder
653 Fully Qualified class name implementing PayloadEncoder, Encoder must have a no arg constructor.
655 <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
659 <!-- lowercases the entire field value, keeping it as a single token. -->
660 <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
662 <tokenizer class="solr.KeywordTokenizerFactory"/>
663 <filter class="solr.LowerCaseFilterFactory" />
668 Example of using PathHierarchyTokenizerFactory at index time, so
669 queries for paths match documents at that path, or in descendent paths
671 <fieldType name="descendent_path" class="solr.TextField">
672 <analyzer type="index">
673 <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
675 <analyzer type="query">
676 <tokenizer class="solr.KeywordTokenizerFactory" />
680 Example of using PathHierarchyTokenizerFactory at query time, so
681 queries for paths match documents at that path, or in ancestor paths
683 <fieldType name="ancestor_path" class="solr.TextField">
684 <analyzer type="index">
685 <tokenizer class="solr.KeywordTokenizerFactory" />
687 <analyzer type="query">
688 <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
692 <!-- since fields of this type are by default not stored or indexed,
693 any data added to them will be ignored outright. -->
694 <fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
696 <!-- This point type indexes the coordinates as separate fields (subFields)
697 If subFieldType is defined, it references a type, and a dynamic field
698 definition is created matching *___<typename>. Alternately, if
699 subFieldSuffix is defined, that is used to create the subFields.
700 Example: if subFieldType="double", then the coordinates would be
701 indexed in fields myloc_0___double,myloc_1___double.
702 Example: if subFieldSuffix="_d" then the coordinates would be indexed
703 in fields myloc_0_d,myloc_1_d
704 The subFields are an implementation detail of the fieldType, and end
705 users normally should not need to know about them.
707 <fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
709 <!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
710 <fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
712 <!-- An alternative geospatial field type new to Solr 4. It supports multiValued and polygon shapes.
713 For more information about this and other Spatial fields new to Solr 4, see:
714 http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4
716 <fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
717 geo="true" distErrPct="0.025" maxDistErr="0.000009" units="degrees" />
719 <!-- Spatial rectangle (bounding box) field. It supports most spatial predicates, and has
720 special relevancy modes: score=overlapRatio|area|area2D (local-param to the query). DocValues is required for
722 <fieldType name="bbox" class="solr.BBoxField"
723 geo="true" units="degrees" numberType="_bbox_coord" />
724 <fieldType name="_bbox_coord" class="solr.TrieDoubleField" precisionStep="8" docValues="true" stored="false"/>
726 <!-- Money/currency field type. See http://wiki.apache.org/solr/MoneyFieldType
728 defaultCurrency: Specifies the default currency if none specified. Defaults to "USD"
729 precisionStep: Specifies the precisionStep for the TrieLong field used for the amount
730 providerClass: Lets you plug in other exchange provider backend:
731 solr.FileExchangeRateProvider is the default and takes one parameter:
732 currencyConfig: name of an xml file holding exchange rates
733 solr.OpenExchangeRatesOrgProvider uses rates from openexchangerates.org:
734 ratesFileLocation: URL or path to rates JSON file (default latest.json on the web)
735 refreshInterval: Number of minutes between each rates fetch (default: 1440, min: 60)
737 <fieldType name="currency" class="solr.CurrencyField" precisionStep="8" defaultCurrency="USD" currencyConfig="currency.xml" />
741 <!-- some examples for different languages (generally ordered by ISO code) -->
744 <fieldType name="text_ar" class="solr.TextField" positionIncrementGap="100">
746 <tokenizer class="solr.StandardTokenizerFactory"/>
747 <!-- for any non-arabic -->
748 <filter class="solr.LowerCaseFilterFactory"/>
749 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ar.txt" />
750 <!-- normalizes ﻯ to ﻱ, etc -->
751 <filter class="solr.ArabicNormalizationFilterFactory"/>
752 <filter class="solr.ArabicStemFilterFactory"/>
757 <fieldType name="text_bg" class="solr.TextField" positionIncrementGap="100">
759 <tokenizer class="solr.StandardTokenizerFactory"/>
760 <filter class="solr.LowerCaseFilterFactory"/>
761 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_bg.txt" />
762 <filter class="solr.BulgarianStemFilterFactory"/>
767 <fieldType name="text_ca" class="solr.TextField" positionIncrementGap="100">
769 <tokenizer class="solr.StandardTokenizerFactory"/>
770 <!-- removes l', etc -->
771 <filter class="solr.ElisionFilterFactory" ignoreCase="true" articles="lang/contractions_ca.txt"/>
772 <filter class="solr.LowerCaseFilterFactory"/>
773 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ca.txt" />
774 <filter class="solr.SnowballPorterFilterFactory" language="Catalan"/>
778 <!-- CJK bigram (see text_ja for a Japanese configuration using morphological analysis) -->
779 <fieldType name="text_cjk" class="solr.TextField" positionIncrementGap="100">
781 <tokenizer class="solr.StandardTokenizerFactory"/>
782 <!-- normalize width before bigram, as e.g. half-width dakuten combine -->
783 <filter class="solr.CJKWidthFilterFactory"/>
784 <!-- for any non-CJK -->
785 <filter class="solr.LowerCaseFilterFactory"/>
786 <filter class="solr.CJKBigramFilterFactory"/>
791 <fieldType name="text_ckb" class="solr.TextField" positionIncrementGap="100">
793 <tokenizer class="solr.StandardTokenizerFactory"/>
794 <filter class="solr.SoraniNormalizationFilterFactory"/>
795 <!-- for any latin text -->
796 <filter class="solr.LowerCaseFilterFactory"/>
797 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ckb.txt"/>
798 <filter class="solr.SoraniStemFilterFactory"/>
803 <fieldType name="text_cz" class="solr.TextField" positionIncrementGap="100">
805 <tokenizer class="solr.StandardTokenizerFactory"/>
806 <filter class="solr.LowerCaseFilterFactory"/>
807 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_cz.txt" />
808 <filter class="solr.CzechStemFilterFactory"/>
813 <fieldType name="text_da" class="solr.TextField" positionIncrementGap="100">
815 <tokenizer class="solr.StandardTokenizerFactory"/>
816 <filter class="solr.LowerCaseFilterFactory"/>
817 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_da.txt" format="snowball" />
818 <filter class="solr.SnowballPorterFilterFactory" language="Danish"/>
823 <fieldType name="text_de" class="solr.TextField" positionIncrementGap="100">
825 <tokenizer class="solr.StandardTokenizerFactory"/>
826 <filter class="solr.LowerCaseFilterFactory"/>
827 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_de.txt" format="snowball" />
828 <filter class="solr.GermanNormalizationFilterFactory"/>
829 <filter class="solr.GermanLightStemFilterFactory"/>
830 <!-- less aggressive: <filter class="solr.GermanMinimalStemFilterFactory"/> -->
831 <!-- more aggressive: <filter class="solr.SnowballPorterFilterFactory" language="German2"/> -->
836 <fieldType name="text_el" class="solr.TextField" positionIncrementGap="100">
838 <tokenizer class="solr.StandardTokenizerFactory"/>
839 <!-- greek specific lowercase for sigma -->
840 <filter class="solr.GreekLowerCaseFilterFactory"/>
841 <filter class="solr.StopFilterFactory" ignoreCase="false" words="lang/stopwords_el.txt" />
842 <filter class="solr.GreekStemFilterFactory"/>
847 <fieldType name="text_es" class="solr.TextField" positionIncrementGap="100">
849 <tokenizer class="solr.StandardTokenizerFactory"/>
850 <filter class="solr.LowerCaseFilterFactory"/>
851 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_es.txt" format="snowball" />
852 <filter class="solr.SpanishLightStemFilterFactory"/>
853 <!-- more aggressive: <filter class="solr.SnowballPorterFilterFactory" language="Spanish"/> -->
858 <fieldType name="text_eu" class="solr.TextField" positionIncrementGap="100">
860 <tokenizer class="solr.StandardTokenizerFactory"/>
861 <filter class="solr.LowerCaseFilterFactory"/>
862 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_eu.txt" />
863 <filter class="solr.SnowballPorterFilterFactory" language="Basque"/>
868 <fieldType name="text_fa" class="solr.TextField" positionIncrementGap="100">
871 <charFilter class="solr.PersianCharFilterFactory"/>
872 <tokenizer class="solr.StandardTokenizerFactory"/>
873 <filter class="solr.LowerCaseFilterFactory"/>
874 <filter class="solr.ArabicNormalizationFilterFactory"/>
875 <filter class="solr.PersianNormalizationFilterFactory"/>
876 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_fa.txt" />
881 <fieldType name="text_fi" class="solr.TextField" positionIncrementGap="100">
883 <tokenizer class="solr.StandardTokenizerFactory"/>
884 <filter class="solr.LowerCaseFilterFactory"/>
885 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_fi.txt" format="snowball" />
886 <filter class="solr.SnowballPorterFilterFactory" language="Finnish"/>
887 <!-- less aggressive: <filter class="solr.FinnishLightStemFilterFactory"/> -->
892 <fieldType name="text_fr" class="solr.TextField" positionIncrementGap="100">
894 <tokenizer class="solr.StandardTokenizerFactory"/>
895 <!-- removes l', etc -->
896 <filter class="solr.ElisionFilterFactory" ignoreCase="true" articles="lang/contractions_fr.txt"/>
897 <filter class="solr.LowerCaseFilterFactory"/>
898 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_fr.txt" format="snowball" />
899 <filter class="solr.FrenchLightStemFilterFactory"/>
900 <!-- less aggressive: <filter class="solr.FrenchMinimalStemFilterFactory"/> -->
901 <!-- more aggressive: <filter class="solr.SnowballPorterFilterFactory" language="French"/> -->
906 <fieldType name="text_ga" class="solr.TextField" positionIncrementGap="100">
908 <tokenizer class="solr.StandardTokenizerFactory"/>
909 <!-- removes d', etc -->
910 <filter class="solr.ElisionFilterFactory" ignoreCase="true" articles="lang/contractions_ga.txt"/>
911 <!-- removes n-, etc. position increments is intentionally false! -->
912 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/hyphenations_ga.txt"/>
913 <filter class="solr.IrishLowerCaseFilterFactory"/>
914 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ga.txt"/>
915 <filter class="solr.SnowballPorterFilterFactory" language="Irish"/>
920 <fieldType name="text_gl" class="solr.TextField" positionIncrementGap="100">
922 <tokenizer class="solr.StandardTokenizerFactory"/>
923 <filter class="solr.LowerCaseFilterFactory"/>
924 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_gl.txt" />
925 <filter class="solr.GalicianStemFilterFactory"/>
926 <!-- less aggressive: <filter class="solr.GalicianMinimalStemFilterFactory"/> -->
931 <fieldType name="text_hi" class="solr.TextField" positionIncrementGap="100">
933 <tokenizer class="solr.StandardTokenizerFactory"/>
934 <filter class="solr.LowerCaseFilterFactory"/>
935 <!-- normalizes unicode representation -->
936 <filter class="solr.IndicNormalizationFilterFactory"/>
937 <!-- normalizes variation in spelling -->
938 <filter class="solr.HindiNormalizationFilterFactory"/>
939 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_hi.txt" />
940 <filter class="solr.HindiStemFilterFactory"/>
945 <fieldType name="text_hu" class="solr.TextField" positionIncrementGap="100">
947 <tokenizer class="solr.StandardTokenizerFactory"/>
948 <filter class="solr.LowerCaseFilterFactory"/>
949 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_hu.txt" format="snowball" />
950 <filter class="solr.SnowballPorterFilterFactory" language="Hungarian"/>
951 <!-- less aggressive: <filter class="solr.HungarianLightStemFilterFactory"/> -->
956 <fieldType name="text_hy" class="solr.TextField" positionIncrementGap="100">
958 <tokenizer class="solr.StandardTokenizerFactory"/>
959 <filter class="solr.LowerCaseFilterFactory"/>
960 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_hy.txt" />
961 <filter class="solr.SnowballPorterFilterFactory" language="Armenian"/>
966 <fieldType name="text_id" class="solr.TextField" positionIncrementGap="100">
968 <tokenizer class="solr.StandardTokenizerFactory"/>
969 <filter class="solr.LowerCaseFilterFactory"/>
970 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_id.txt" />
971 <!-- for a less aggressive approach (only inflectional suffixes), set stemDerivational to false -->
972 <filter class="solr.IndonesianStemFilterFactory" stemDerivational="true"/>
977 <fieldType name="text_it" class="solr.TextField" positionIncrementGap="100">
979 <tokenizer class="solr.StandardTokenizerFactory"/>
980 <!-- removes l', etc -->
981 <filter class="solr.ElisionFilterFactory" ignoreCase="true" articles="lang/contractions_it.txt"/>
982 <filter class="solr.LowerCaseFilterFactory"/>
983 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_it.txt" format="snowball" />
984 <filter class="solr.ItalianLightStemFilterFactory"/>
985 <!-- more aggressive: <filter class="solr.SnowballPorterFilterFactory" language="Italian"/> -->
989 <!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
991 NOTE: If you want to optimize search for precision, use default operator AND in your query
992 parser config with <solrQueryParser defaultOperator="AND"/> further down in this file. Use
993 OR if you would like to optimize for recall (default).
995 <fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
997 <!-- Kuromoji Japanese morphological analyzer/tokenizer (JapaneseTokenizer)
999 Kuromoji has a search mode (default) that does segmentation useful for search. A heuristic
1000 is used to segment compounds into its parts and the compound itself is kept as synonym.
1002 Valid values for attribute mode are:
1003 normal: regular segmentation
1004 search: segmentation useful for search with synonyms compounds (default)
1005 extended: same as search mode, but unigrams unknown words (experimental)
1007 For some applications it might be good to use search mode for indexing and normal mode for
1008 queries to reduce recall and prevent parts of compounds from being matched and highlighted.
1009 Use <analyzer type="index"> and <analyzer type="query"> for this and mode normal in query.
1011 Kuromoji also has a convenient user dictionary feature that allows overriding the statistical
1012 model with your own entries for segmentation, part-of-speech tags and readings without a need
1013 to specify weights. Notice that user dictionaries have not been subject to extensive testing.
1015 User dictionary attributes are:
1016 userDictionary: user dictionary filename
1017 userDictionaryEncoding: user dictionary encoding (default is UTF-8)
1019 See lang/userdict_ja.txt for a sample user dictionary file.
1021 Punctuation characters are discarded by default. Use discardPunctuation="false" to keep them.
1023 See http://wiki.apache.org/solr/JapaneseLanguageSupport for more on Japanese language support.
1025 <tokenizer class="solr.JapaneseTokenizerFactory" mode="search"/>
1026 <!--<tokenizer class="solr.JapaneseTokenizerFactory" mode="search" userDictionary="lang/userdict_ja.txt"/>-->
1027 <!-- Reduces inflected verbs and adjectives to their base/dictionary forms (辞書形) -->
1028 <filter class="solr.JapaneseBaseFormFilterFactory"/>
1029 <!-- Removes tokens with certain part-of-speech tags -->
1030 <filter class="solr.JapanesePartOfSpeechStopFilterFactory" tags="lang/stoptags_ja.txt" />
1031 <!-- Normalizes full-width romaji to half-width and half-width kana to full-width (Unicode NFKC subset) -->
1032 <filter class="solr.CJKWidthFilterFactory"/>
1033 <!-- Removes common tokens typically not useful for search, but have a negative effect on ranking -->
1034 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ja.txt" />
1035 <!-- Normalizes common katakana spelling variations by removing any last long sound character (U+30FC) -->
1036 <filter class="solr.JapaneseKatakanaStemFilterFactory" minimumLength="4"/>
1037 <!-- Lower-cases romaji characters -->
1038 <filter class="solr.LowerCaseFilterFactory"/>
1043 <fieldType name="text_lv" class="solr.TextField" positionIncrementGap="100">
1045 <tokenizer class="solr.StandardTokenizerFactory"/>
1046 <filter class="solr.LowerCaseFilterFactory"/>
1047 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_lv.txt" />
1048 <filter class="solr.LatvianStemFilterFactory"/>
1053 <fieldType name="text_nl" class="solr.TextField" positionIncrementGap="100">
1055 <tokenizer class="solr.StandardTokenizerFactory"/>
1056 <filter class="solr.LowerCaseFilterFactory"/>
1057 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_nl.txt" format="snowball" />
1058 <filter class="solr.StemmerOverrideFilterFactory" dictionary="lang/stemdict_nl.txt" ignoreCase="false"/>
1059 <filter class="solr.SnowballPorterFilterFactory" language="Dutch"/>
1064 <fieldType name="text_no" class="solr.TextField" positionIncrementGap="100">
1066 <tokenizer class="solr.StandardTokenizerFactory"/>
1067 <filter class="solr.LowerCaseFilterFactory"/>
1068 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_no.txt" format="snowball" />
1069 <filter class="solr.SnowballPorterFilterFactory" language="Norwegian"/>
1070 <!-- less aggressive: <filter class="solr.NorwegianLightStemFilterFactory" variant="nb"/> -->
1071 <!-- singular/plural: <filter class="solr.NorwegianMinimalStemFilterFactory" variant="nb"/> -->
1072 <!-- The "light" and "minimal" stemmers support variants: nb=Bokmål, nn=Nynorsk, no=Both -->
1077 <fieldType name="text_pt" class="solr.TextField" positionIncrementGap="100">
1079 <tokenizer class="solr.StandardTokenizerFactory"/>
1080 <filter class="solr.LowerCaseFilterFactory"/>
1081 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_pt.txt" format="snowball" />
1082 <filter class="solr.PortugueseLightStemFilterFactory"/>
1083 <!-- less aggressive: <filter class="solr.PortugueseMinimalStemFilterFactory"/> -->
1084 <!-- more aggressive: <filter class="solr.SnowballPorterFilterFactory" language="Portuguese"/> -->
1085 <!-- most aggressive: <filter class="solr.PortugueseStemFilterFactory"/> -->
1090 <fieldType name="text_ro" class="solr.TextField" positionIncrementGap="100">
1092 <tokenizer class="solr.StandardTokenizerFactory"/>
1093 <filter class="solr.LowerCaseFilterFactory"/>
1094 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ro.txt" />
1095 <filter class="solr.SnowballPorterFilterFactory" language="Romanian"/>
1100 <fieldType name="text_ru" class="solr.TextField" positionIncrementGap="100">
1102 <tokenizer class="solr.StandardTokenizerFactory"/>
1103 <filter class="solr.LowerCaseFilterFactory"/>
1104 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ru.txt" format="snowball" />
1105 <filter class="solr.SnowballPorterFilterFactory" language="Russian"/>
1106 <!-- less aggressive: <filter class="solr.RussianLightStemFilterFactory"/> -->
1111 <fieldType name="text_sv" class="solr.TextField" positionIncrementGap="100">
1113 <tokenizer class="solr.StandardTokenizerFactory"/>
1114 <filter class="solr.LowerCaseFilterFactory"/>
1115 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_sv.txt" format="snowball" />
1116 <filter class="solr.SnowballPorterFilterFactory" language="Swedish"/>
1117 <!-- less aggressive: <filter class="solr.SwedishLightStemFilterFactory"/> -->
1122 <fieldType name="text_th" class="solr.TextField" positionIncrementGap="100">
1124 <tokenizer class="solr.ThaiTokenizerFactory"/>
1125 <filter class="solr.LowerCaseFilterFactory"/>
1126 <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_th.txt" />
1131 <fieldType name="text_tr" class="solr.TextField" positionIncrementGap="100">
1133 <tokenizer class="solr.StandardTokenizerFactory"/>
1134 <filter class="solr.ApostropheFilterFactory"/>
1135 <filter class="solr.TurkishLowerCaseFilterFactory"/>
1136 <filter class="solr.StopFilterFactory" ignoreCase="false" words="lang/stopwords_tr.txt" />
1137 <filter class="solr.SnowballPorterFilterFactory" language="Turkish"/>
1141 <!-- Similarity is the scoring routine for each document vs. a query.
1142 A custom Similarity or SimilarityFactory may be specified here, but
1143 the default is fine for most applications.
1144 For more info: http://wiki.apache.org/solr/SchemaXml#Similarity
1147 <similarity class="com.example.solr.CustomSimilarityFactory">
1148 <str name="paramkey">param value</str>