jETA-Kor

managed-schema (20161209-001)

Dec 9th, 2016
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 55.47 KB | None | 0 0
  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 ConcurrentUpdateSolrServer
  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="example-basic" version="1.6">
  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.
  52.  
  53.       1.0: multiValued attribute did not exist, all fields are multiValued
  54.            by nature
  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...)
  64.       1.6: useDocValuesAsStored defaults to true.
  65.    -->
  66.  
  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.       fieldTypes 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
  81.       for more information)
  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
  89.       given field.
  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
  97.       value does not exist
  98.     default: a value that should be used if no value is specified
  99.       when adding a document.
  100.    -->
  101.  
  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.
  107.    -->
  108.  
  109.     <!-- In this data_driven_schema_configs configset, only three fields are pre-declared:
  110.         id, _version_, and _text_.  All other fields will be type guessed and added via the
  111.         "add-unknown-fields-to-the-schema" update request processor chain declared
  112.         in solrconfig.xml.
  113.        
  114.         Note that many dynamic fields are also defined - you can use them to specify a
  115.         field's type via field naming conventions - see below.
  116.  
  117.         WARNING: The _text_ catch-all field will significantly increase your index size.
  118.         If you don't need it, consider removing it and the corresponding copyField directive.
  119.    -->
  120.     <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />
  121.     <!-- doc values are enabled by default for primitive types such as long so we don't index the version field  -->
  122.     <field name="_version_" type="long" indexed="false" stored="false"/>
  123.     <field name="_root_" type="string" indexed="true" stored="false" docValues="false" />
  124.     <field name="_text_" type="text_general" indexed="true" stored="false" multiValued="true"/>
  125.  
  126.     <field name="title" type="text_general" indexed="false" stored="true" multiValued="false" />
  127.     <field name="writer" type="string" indexed="false" stored="true" multiValued="false" />
  128.     <field name="board" type="text_general" indexed="false" stored="true" multiValued="false" />
  129.     <field name="date" type="date" indexed="true" stored="true" multiValued="false" />
  130.  
  131.     <field name="text" type="text_general" indexed="true" stored="true" multiValued="true" />
  132.     <copyField source="title" dest="text" />
  133.     <copyField source="writer" dest="text" />
  134.     <copyField source="board" dest="text" />
  135.  
  136.     <!-- Only enabled in the "schemaless" data-driven example (assuming the client
  137.         does not know what fields may be searched) because it's very expensive to index everything twice. -->
  138.     <!-- <copyField source="*" dest="_text_"/> -->
  139.  
  140.     <!-- Dynamic field definitions allow using convention over configuration
  141.       for fields via the specification of patterns to match field names.
  142.       EXAMPLE:  name="*_i" will match any field ending in _i (like myid_i, z_i)
  143.       RESTRICTION: the glob-like pattern in the name attribute must have
  144.       a "*" only at the start or the end.  -->
  145.    
  146.     <dynamicField name="*_i"  type="int"    indexed="true"  stored="true"/>
  147.     <dynamicField name="*_is" type="ints"    indexed="true"  stored="true"/>
  148.     <dynamicField name="*_s"  type="string"  indexed="true"  stored="true" />
  149.     <dynamicField name="*_ss" type="strings"  indexed="true"  stored="true"/>
  150.     <dynamicField name="*_l"  type="long"   indexed="true"  stored="true"/>
  151.     <dynamicField name="*_ls" type="longs"   indexed="true"  stored="true"/>
  152.     <dynamicField name="*_t"   type="text_general" indexed="true" stored="true"/>
  153.     <dynamicField name="*_txt" type="text_general" indexed="true" stored="true"/>
  154.     <dynamicField name="*_b"  type="boolean" indexed="true" stored="true"/>
  155.     <dynamicField name="*_bs" type="booleans" indexed="true" stored="true"/>
  156.     <dynamicField name="*_f"  type="float"  indexed="true"  stored="true"/>
  157.     <dynamicField name="*_fs" type="floats"  indexed="true"  stored="true"/>
  158.     <dynamicField name="*_d"  type="double" indexed="true"  stored="true"/>
  159.     <dynamicField name="*_ds" type="doubles" indexed="true"  stored="true"/>
  160.  
  161.     <!-- Type used to index the lat and lon components for the "location" FieldType -->
  162.     <dynamicField name="*_coordinate"  type="tdouble" indexed="true"  stored="false" useDocValuesAsStored="false" />
  163.  
  164.     <dynamicField name="*_dt"  type="date"    indexed="true"  stored="true"/>
  165.     <dynamicField name="*_dts" type="date"    indexed="true"  stored="true" multiValued="true"/>
  166.     <dynamicField name="*_p"  type="location" indexed="true" stored="true"/>
  167.     <dynamicField name="*_srpt"  type="location_rpt" indexed="true" stored="true"/>
  168.  
  169.     <!-- some trie-coded dynamic fields for faster range queries -->
  170.     <dynamicField name="*_ti" type="tint"    indexed="true"  stored="true"/>
  171.     <dynamicField name="*_tis" type="tints"    indexed="true"  stored="true"/>
  172.     <dynamicField name="*_tl" type="tlong"   indexed="true"  stored="true"/>
  173.     <dynamicField name="*_tls" type="tlongs"   indexed="true"  stored="true"/>
  174.     <dynamicField name="*_tf" type="tfloat"  indexed="true"  stored="true"/>
  175.     <dynamicField name="*_tfs" type="tfloats"  indexed="true"  stored="true"/>
  176.     <dynamicField name="*_td" type="tdouble" indexed="true"  stored="true"/>
  177.     <dynamicField name="*_tds" type="tdoubles" indexed="true"  stored="true"/>
  178.     <dynamicField name="*_tdt" type="tdate"  indexed="true"  stored="true"/>
  179.     <dynamicField name="*_tdts" type="tdates"  indexed="true"  stored="true"/>
  180.  
  181.     <dynamicField name="*_c"   type="currency" indexed="true"  stored="true"/>
  182.  
  183.     <dynamicField name="ignored_*" type="ignored" multiValued="true"/>
  184.     <dynamicField name="attr_*" type="text_general" indexed="true" stored="true" multiValued="true"/>
  185.  
  186.     <dynamicField name="random_*" type="random" />
  187.  
  188.     <!-- uncomment the following to ignore any fields that don't already match an existing
  189.        field name or dynamic field, rather than reporting them as an error.
  190.        alternately, change the type="ignored" to some other type e.g. "text" if you want
  191.        unknown fields indexed and/or stored by default
  192.        
  193.        NB: use of "*" dynamic fields will disable field type guessing and adding
  194.        unknown fields to the schema. -->
  195.     <!--dynamicField name="*" type="ignored" multiValued="true" /-->
  196.  
  197.     <!-- Field to use to determine and enforce document uniqueness.
  198.      Unless this field is marked with required="false", it will be a required field
  199.    -->
  200.     <uniqueKey>id</uniqueKey>
  201.  
  202.     <!-- copyField commands copy one field to another at the time a document
  203.       is added to the index.  It's used either to index the same field differently,
  204.       or to add multiple fields to the same field for easier/faster searching.
  205.  
  206.    <copyField source="sourceFieldName" dest="destinationFieldName"/>
  207.    -->
  208.  
  209.     <!-- field type definitions. The "name" attribute is
  210.       just a label to be used by field definitions.  The "class"
  211.       attribute and any other attributes determine the real
  212.       behavior of the fieldType.
  213.         Class names starting with "solr" refer to java classes in a
  214.       standard package such as org.apache.solr.analysis
  215.    -->
  216.  
  217.     <!-- The StrField type is not analyzed, but indexed/stored verbatim.
  218.       It supports doc values but in that case the field needs to be
  219.       single-valued and either required or have a default value.
  220.      -->
  221.     <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" />
  222.     <fieldType name="strings" class="solr.StrField" sortMissingLast="true" multiValued="true" docValues="true" />
  223.  
  224.     <!-- boolean type: "true" or "false" -->
  225.     <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
  226.  
  227.     <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true" multiValued="true"/>
  228.  
  229.     <!-- sortMissingLast and sortMissingFirst attributes are optional attributes are
  230.         currently supported on types that are sorted internally as strings
  231.         and on numeric types.
  232.          This includes "string","boolean", and, as of 3.5 (and 4.x),
  233.          int, float, long, date, double, including the "Trie" variants.
  234.       - If sortMissingLast="true", then a sort on this field will cause documents
  235.         without the field to come after documents with the field,
  236.         regardless of the requested sort order (asc or desc).
  237.       - If sortMissingFirst="true", then a sort on this field will cause documents
  238.         without the field to come before documents with the field,
  239.         regardless of the requested sort order.
  240.       - If sortMissingLast="false" and sortMissingFirst="false" (the default),
  241.         then default lucene sorting will be used which places docs without the
  242.         field first in an ascending sort and last in a descending sort.
  243.    -->    
  244.  
  245.     <!--
  246.      Default numeric field types. For faster range queries, consider the tint/tfloat/tlong/tdouble types.
  247.  
  248.      These fields support doc values, but they require the field to be
  249.      single-valued and either be required or have a default value.
  250.    -->
  251.     <fieldType name="int" class="solr.TrieIntField" docValues="true" precisionStep="0" positionIncrementGap="0"/>
  252.     <fieldType name="float" class="solr.TrieFloatField" docValues="true" precisionStep="0" positionIncrementGap="0"/>
  253.     <fieldType name="long" class="solr.TrieLongField" docValues="true" precisionStep="0" positionIncrementGap="0"/>
  254.     <fieldType name="double" class="solr.TrieDoubleField" docValues="true" precisionStep="0" positionIncrementGap="0"/>
  255.  
  256.     <fieldType name="ints" class="solr.TrieIntField" docValues="true" precisionStep="0" positionIncrementGap="0" multiValued="true"/>
  257.     <fieldType name="floats" class="solr.TrieFloatField" docValues="true" precisionStep="0" positionIncrementGap="0" multiValued="true"/>
  258.     <fieldType name="longs" class="solr.TrieLongField" docValues="true" precisionStep="0" positionIncrementGap="0" multiValued="true"/>
  259.     <fieldType name="doubles" class="solr.TrieDoubleField" docValues="true" precisionStep="0" positionIncrementGap="0" multiValued="true"/>
  260.  
  261.     <!--
  262.     Numeric field types that index each value at various levels of precision
  263.     to accelerate range queries when the number of values between the range
  264.     endpoints is large. See the javadoc for NumericRangeQuery for internal
  265.     implementation details.
  266.  
  267.     Smaller precisionStep values (specified in bits) will lead to more tokens
  268.     indexed per value, slightly larger index size, and faster range queries.
  269.     A precisionStep of 0 disables indexing at different precision levels.
  270.    -->
  271.     <fieldType name="tint" class="solr.TrieIntField" docValues="true" precisionStep="8" positionIncrementGap="0"/>
  272.     <fieldType name="tfloat" class="solr.TrieFloatField" docValues="true" precisionStep="8" positionIncrementGap="0"/>
  273.     <fieldType name="tlong" class="solr.TrieLongField" docValues="true" precisionStep="8" positionIncrementGap="0"/>
  274.     <fieldType name="tdouble" class="solr.TrieDoubleField" docValues="true" precisionStep="8" positionIncrementGap="0"/>
  275.    
  276.     <fieldType name="tints" class="solr.TrieIntField" docValues="true" precisionStep="8" positionIncrementGap="0" multiValued="true"/>
  277.     <fieldType name="tfloats" class="solr.TrieFloatField" docValues="true" precisionStep="8" positionIncrementGap="0" multiValued="true"/>
  278.     <fieldType name="tlongs" class="solr.TrieLongField" docValues="true" precisionStep="8" positionIncrementGap="0" multiValued="true"/>
  279.     <fieldType name="tdoubles" class="solr.TrieDoubleField" docValues="true" precisionStep="8" positionIncrementGap="0" multiValued="true"/>
  280.  
  281.     <!-- The format for this date field is of the form 1995-12-31T23:59:59Z, and
  282.         is a more restricted form of the canonical representation of dateTime
  283.         http://www.w3.org/TR/xmlschema-2/#dateTime    
  284.         The trailing "Z" designates UTC time and is mandatory.
  285.         Optional fractional seconds are allowed: 1995-12-31T23:59:59.999Z
  286.         All other components are mandatory.
  287.  
  288.         Expressions can also be used to denote calculations that should be
  289.         performed relative to "NOW" to determine the value, ie...
  290.  
  291.               NOW/HOUR
  292.                  ... Round to the start of the current hour
  293.               NOW-1DAY
  294.                  ... Exactly 1 day prior to now
  295.               NOW/DAY+6MONTHS+3DAYS
  296.                  ... 6 months and 3 days in the future from the start of
  297.                      the current day
  298.                      
  299.         Consult the TrieDateField javadocs for more information.
  300.  
  301.         Note: For faster range queries, consider the tdate type
  302.      -->
  303.     <fieldType name="date" class="solr.TrieDateField" docValues="true" precisionStep="0" positionIncrementGap="0"/>
  304.     <fieldType name="dates" class="solr.TrieDateField" docValues="true" precisionStep="0" positionIncrementGap="0" multiValued="true"/>
  305.  
  306.     <!-- A Trie based date field for faster date range queries and date faceting. -->
  307.     <fieldType name="tdate" class="solr.TrieDateField" docValues="true" precisionStep="6" positionIncrementGap="0"/>
  308.  
  309.     <fieldType name="tdates" class="solr.TrieDateField" docValues="true" precisionStep="6" positionIncrementGap="0" multiValued="true"/>
  310.  
  311.  
  312.     <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
  313.     <fieldType name="binary" class="solr.BinaryField"/>
  314.  
  315.     <!-- The "RandomSortField" is not used to store or search any
  316.         data.  You can declare fields of this type it in your schema
  317.         to generate pseudo-random orderings of your docs for sorting
  318.         or function purposes.  The ordering is generated based on the field
  319.         name and the version of the index. As long as the index version
  320.         remains unchanged, and the same field name is reused,
  321.         the ordering of the docs will be consistent.  
  322.         If you want different psuedo-random orderings of documents,
  323.         for the same version of the index, use a dynamicField and
  324.         change the field name in the request.
  325.     -->
  326.     <fieldType name="random" class="solr.RandomSortField" indexed="true" />
  327.  
  328.     <!-- solr.TextField allows the specification of custom text analyzers
  329.         specified as a tokenizer and a list of token filters. Different
  330.         analyzers may be specified for indexing and querying.
  331.  
  332.         The optional positionIncrementGap puts space between multiple fields of
  333.         this type on the same document, with the purpose of preventing false phrase
  334.         matching across fields.
  335.  
  336.         For more info on customizing your analyzer chain, please see
  337.         http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters
  338.     -->
  339.  
  340.     <!-- One can also specify an existing Analyzer class that has a
  341.         default constructor via the class attribute on the analyzer element.
  342.         Example:
  343.    <fieldType name="text_greek" class="solr.TextField">
  344.      <analyzer class="org.apache.lucene.analysis.el.GreekAnalyzer"/>
  345.    </fieldType>
  346.    -->
  347.  
  348.     <!-- A text field that only splits on whitespace for exact matching of words -->
  349.     <dynamicField name="*_ws" type="text_ws"  indexed="true"  stored="true"/>
  350.     <fieldType name="text_ws" class="solr.TextField" positionIncrementGap="100">
  351.       <analyzer>
  352.         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
  353.       </analyzer>
  354.     </fieldType>
  355.  
  356.     <!-- A general text field that has reasonable, generic
  357.         cross-language defaults: it tokenizes with StandardTokenizer,
  358.            removes stop words from case-insensitive "stopwords.txt"
  359.            (empty by default), and down cases.  At query time only, it
  360.            also applies synonyms.
  361.       -->
  362.     <fieldType name="text_general" class="solr.TextField" positionIncrementGap="100" multiValued="true">
  363.       <analyzer type="index">
  364.         <tokenizer class="solr.StandardTokenizerFactory"/>
  365.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
  366.         <!-- in this example, we will only use synonyms at query time
  367.        <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
  368.        -->
  369.         <filter class="solr.LowerCaseFilterFactory"/>
  370.       </analyzer>
  371.       <analyzer type="query">
  372.         <tokenizer class="solr.StandardTokenizerFactory"/>
  373.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
  374.         <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
  375.         <filter class="solr.LowerCaseFilterFactory"/>
  376.       </analyzer>
  377.     </fieldType>
  378.  
  379.     <!-- A text field with defaults appropriate for English: it
  380.         tokenizes with StandardTokenizer, removes English stop words
  381.         (lang/stopwords_en.txt), down cases, protects words from protwords.txt, and
  382.         finally applies Porter's stemming.  The query time analyzer
  383.         also applies synonyms from synonyms.txt. -->
  384.     <dynamicField name="*_txt_en" type="text_en"  indexed="true"  stored="true"/>
  385.     <fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
  386.       <analyzer type="index">
  387.         <tokenizer class="solr.StandardTokenizerFactory"/>
  388.         <!-- in this example, we will only use synonyms at query time
  389.        <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
  390.        -->
  391.         <!-- Case insensitive stop word removal.
  392.        -->
  393.         <filter class="solr.StopFilterFactory"
  394.                ignoreCase="true"
  395.                words="lang/stopwords_en.txt"
  396.            />
  397.         <filter class="solr.LowerCaseFilterFactory"/>
  398.         <filter class="solr.EnglishPossessiveFilterFactory"/>
  399.         <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
  400.         <!-- Optionally you may want to use this less aggressive stemmer instead of PorterStemFilterFactory:
  401.        <filter class="solr.EnglishMinimalStemFilterFactory"/>
  402.           -->
  403.         <filter class="solr.PorterStemFilterFactory"/>
  404.       </analyzer>
  405.       <analyzer type="query">
  406.         <tokenizer class="solr.StandardTokenizerFactory"/>
  407.         <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
  408.         <filter class="solr.StopFilterFactory"
  409.                ignoreCase="true"
  410.                words="lang/stopwords_en.txt"
  411.        />
  412.         <filter class="solr.LowerCaseFilterFactory"/>
  413.         <filter class="solr.EnglishPossessiveFilterFactory"/>
  414.         <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
  415.         <!-- Optionally you may want to use this less aggressive stemmer instead of PorterStemFilterFactory:
  416.        <filter class="solr.EnglishMinimalStemFilterFactory"/>
  417.           -->
  418.         <filter class="solr.PorterStemFilterFactory"/>
  419.       </analyzer>
  420.     </fieldType>
  421.  
  422.     <!-- A text field with defaults appropriate for English, plus
  423.         aggressive word-splitting and autophrase features enabled.
  424.         This field is just like text_en, except it adds
  425.         WordDelimiterFilter to enable splitting and matching of
  426.         words on case-change, alpha numeric boundaries, and
  427.         non-alphanumeric chars.  This means certain compound word
  428.         cases will work, for example query "wi fi" will match
  429.         document "WiFi" or "wi-fi".
  430.    -->
  431.     <dynamicField name="*_txt_en_split" type="text_en_splitting"  indexed="true"  stored="true"/>
  432.     <fieldType name="text_en_splitting" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true">
  433.       <analyzer type="index">
  434.         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
  435.         <!-- in this example, we will only use synonyms at query time
  436.        <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
  437.        -->
  438.         <!-- Case insensitive stop word removal.
  439.        -->
  440.         <filter class="solr.StopFilterFactory"
  441.                ignoreCase="true"
  442.                words="lang/stopwords_en.txt"
  443.        />
  444.         <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/>
  445.         <filter class="solr.LowerCaseFilterFactory"/>
  446.         <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
  447.         <filter class="solr.PorterStemFilterFactory"/>
  448.       </analyzer>
  449.       <analyzer type="query">
  450.         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
  451.         <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
  452.         <filter class="solr.StopFilterFactory"
  453.                ignoreCase="true"
  454.                words="lang/stopwords_en.txt"
  455.        />
  456.         <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/>
  457.         <filter class="solr.LowerCaseFilterFactory"/>
  458.         <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
  459.         <filter class="solr.PorterStemFilterFactory"/>
  460.       </analyzer>
  461.     </fieldType>
  462.  
  463.     <!-- Less flexible matching, but less false matches.  Probably not ideal for product names,
  464.         but may be good for SKUs.  Can insert dashes in the wrong place and still match. -->
  465.     <dynamicField name="*_txt_en_split_tight" type="text_en_splitting_tight"  indexed="true"  stored="true"/>
  466.     <fieldType name="text_en_splitting_tight" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true">
  467.       <analyzer>
  468.         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
  469.         <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="false"/>
  470.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_en.txt"/>
  471.         <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
  472.         <filter class="solr.LowerCaseFilterFactory"/>
  473.         <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
  474.         <filter class="solr.EnglishMinimalStemFilterFactory"/>
  475.         <!-- this filter can remove any duplicate tokens that appear at the same position - sometimes
  476.             possible with WordDelimiterFilter in conjuncton with stemming. -->
  477.         <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
  478.       </analyzer>
  479.     </fieldType>
  480.  
  481.     <!-- Just like text_general except it reverses the characters of
  482.            each token, to enable more efficient leading wildcard queries.
  483.    -->
  484.     <dynamicField name="*_txt_rev" type="text_general_rev"  indexed="true"  stored="true"/>
  485.     <fieldType name="text_general_rev" class="solr.TextField" positionIncrementGap="100">
  486.       <analyzer type="index">
  487.         <tokenizer class="solr.StandardTokenizerFactory"/>
  488.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
  489.         <filter class="solr.LowerCaseFilterFactory"/>
  490.         <filter class="solr.ReversedWildcardFilterFactory" withOriginal="true"
  491.                maxPosAsterisk="3" maxPosQuestion="2" maxFractionAsterisk="0.33"/>
  492.       </analyzer>
  493.       <analyzer type="query">
  494.         <tokenizer class="solr.StandardTokenizerFactory"/>
  495.         <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
  496.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
  497.         <filter class="solr.LowerCaseFilterFactory"/>
  498.       </analyzer>
  499.     </fieldType>
  500.  
  501.     <dynamicField name="*_phon_en" type="phonetic_en"  indexed="true"  stored="true"/>
  502.     <fieldType name="phonetic_en" stored="false" indexed="true" class="solr.TextField" >
  503.       <analyzer>
  504.         <tokenizer class="solr.StandardTokenizerFactory"/>
  505.         <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
  506.       </analyzer>
  507.     </fieldType>
  508.  
  509.     <!-- lowercases the entire field value, keeping it as a single token.  -->
  510.     <dynamicField name="*_s_lower" type="lowercase"  indexed="true"  stored="true"/>
  511.     <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
  512.       <analyzer>
  513.         <tokenizer class="solr.KeywordTokenizerFactory"/>
  514.         <filter class="solr.LowerCaseFilterFactory" />
  515.       </analyzer>
  516.     </fieldType>
  517.  
  518.     <!--
  519.      Example of using PathHierarchyTokenizerFactory at index time, so
  520.      queries for paths match documents at that path, or in descendent paths
  521.    -->
  522.     <dynamicField name="*_descendent_path" type="descendent_path"  indexed="true"  stored="true"/>
  523.     <fieldType name="descendent_path" class="solr.TextField">
  524.       <analyzer type="index">
  525.         <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
  526.       </analyzer>
  527.       <analyzer type="query">
  528.         <tokenizer class="solr.KeywordTokenizerFactory" />
  529.       </analyzer>
  530.     </fieldType>
  531.  
  532.     <!--
  533.      Example of using PathHierarchyTokenizerFactory at query time, so
  534.      queries for paths match documents at that path, or in ancestor paths
  535.    -->
  536.     <dynamicField name="*_ancestor_path" type="ancestor_path"  indexed="true"  stored="true"/>
  537.     <fieldType name="ancestor_path" class="solr.TextField">
  538.       <analyzer type="index">
  539.         <tokenizer class="solr.KeywordTokenizerFactory" />
  540.       </analyzer>
  541.       <analyzer type="query">
  542.         <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter="/" />
  543.       </analyzer>
  544.     </fieldType>
  545.  
  546.     <!-- since fields of this type are by default not stored or indexed,
  547.         any data added to them will be ignored outright.  -->
  548.     <fieldType name="ignored" stored="false" indexed="false" docValues="false" multiValued="true" class="solr.StrField" />
  549.  
  550.     <!-- This point type indexes the coordinates as separate fields (subFields)
  551.      If subFieldType is defined, it references a type, and a dynamic field
  552.      definition is created matching *___<typename>.  Alternately, if
  553.      subFieldSuffix is defined, that is used to create the subFields.
  554.      Example: if subFieldType="double", then the coordinates would be
  555.        indexed in fields myloc_0___double,myloc_1___double.
  556.      Example: if subFieldSuffix="_d" then the coordinates would be indexed
  557.        in fields myloc_0_d,myloc_1_d
  558.      The subFields are an implementation detail of the fieldType, and end
  559.      users normally should not need to know about them.
  560.     -->
  561.     <dynamicField name="*_point" type="point"  indexed="true"  stored="true"/>
  562.     <fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
  563.  
  564.     <!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
  565.     <fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
  566.  
  567.     <!-- An alternative geospatial field type new to Solr 4.  It supports multiValued and polygon shapes.
  568.      For more information about this and other Spatial fields new to Solr 4, see:
  569.      http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4
  570.    -->
  571.     <fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
  572.               geo="true" distErrPct="0.025" maxDistErr="0.001" distanceUnits="kilometers" />
  573.  
  574.     <!-- Money/currency field type. See http://wiki.apache.org/solr/MoneyFieldType
  575.        Parameters:
  576.          defaultCurrency: Specifies the default currency if none specified. Defaults to "USD"
  577.          precisionStep:   Specifies the precisionStep for the TrieLong field used for the amount
  578.          providerClass:   Lets you plug in other exchange provider backend:
  579.                           solr.FileExchangeRateProvider is the default and takes one parameter:
  580.                             currencyConfig: name of an xml file holding exchange rates
  581.                           solr.OpenExchangeRatesOrgProvider uses rates from openexchangerates.org:
  582.                             ratesFileLocation: URL or path to rates JSON file (default latest.json on the web)
  583.                             refreshInterval: Number of minutes between each rates fetch (default: 1440, min: 60)
  584.    -->
  585.     <fieldType name="currency" class="solr.CurrencyField" precisionStep="8" defaultCurrency="USD" currencyConfig="currency.xml" />
  586.              
  587.  
  588.  
  589.     <!-- some examples for different languages (generally ordered by ISO code) -->
  590.  
  591.     <!-- Arabic -->
  592.     <dynamicField name="*_txt_ar" type="text_ar"  indexed="true"  stored="true"/>
  593.     <fieldType name="text_ar" class="solr.TextField" positionIncrementGap="100">
  594.       <analyzer>
  595.         <tokenizer class="solr.StandardTokenizerFactory"/>
  596.         <!-- for any non-arabic -->
  597.         <filter class="solr.LowerCaseFilterFactory"/>
  598.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ar.txt" />
  599.         <!-- normalizes ﻯ to ﻱ, etc -->
  600.         <filter class="solr.ArabicNormalizationFilterFactory"/>
  601.         <filter class="solr.ArabicStemFilterFactory"/>
  602.       </analyzer>
  603.     </fieldType>
  604.  
  605.     <!-- Bulgarian -->
  606.     <dynamicField name="*_txt_bg" type="text_bg"  indexed="true"  stored="true"/>
  607.     <fieldType name="text_bg" class="solr.TextField" positionIncrementGap="100">
  608.       <analyzer>
  609.         <tokenizer class="solr.StandardTokenizerFactory"/>
  610.         <filter class="solr.LowerCaseFilterFactory"/>
  611.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_bg.txt" />
  612.         <filter class="solr.BulgarianStemFilterFactory"/>      
  613.       </analyzer>
  614.     </fieldType>
  615.    
  616.     <!-- Catalan -->
  617.     <dynamicField name="*_txt_ca" type="text_ca"  indexed="true"  stored="true"/>
  618.     <fieldType name="text_ca" class="solr.TextField" positionIncrementGap="100">
  619.       <analyzer>
  620.         <tokenizer class="solr.StandardTokenizerFactory"/>
  621.         <!-- removes l', etc -->
  622.         <filter class="solr.ElisionFilterFactory" ignoreCase="true" articles="lang/contractions_ca.txt"/>
  623.         <filter class="solr.LowerCaseFilterFactory"/>
  624.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ca.txt" />
  625.         <filter class="solr.SnowballPorterFilterFactory" language="Catalan"/>      
  626.       </analyzer>
  627.     </fieldType>
  628.    
  629.     <!-- CJK bigram (see text_ja for a Japanese configuration using morphological analysis) -->
  630.     <dynamicField name="*_txt_cjk" type="text_cjk"  indexed="true"  stored="true"/>
  631.     <fieldType name="text_cjk" class="solr.TextField" positionIncrementGap="100">
  632.       <analyzer>
  633.         <tokenizer class="solr.StandardTokenizerFactory"/>
  634.         <!-- normalize width before bigram, as e.g. half-width dakuten combine  -->
  635.         <filter class="solr.CJKWidthFilterFactory"/>
  636.         <!-- for any non-CJK -->
  637.         <filter class="solr.LowerCaseFilterFactory"/>
  638.         <filter class="solr.CJKBigramFilterFactory"/>
  639.       </analyzer>
  640.     </fieldType>
  641.  
  642.     <!-- Czech -->
  643.     <dynamicField name="*_txt_cz" type="text_cz"  indexed="true"  stored="true"/>
  644.     <fieldType name="text_cz" class="solr.TextField" positionIncrementGap="100">
  645.       <analyzer>
  646.         <tokenizer class="solr.StandardTokenizerFactory"/>
  647.         <filter class="solr.LowerCaseFilterFactory"/>
  648.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_cz.txt" />
  649.         <filter class="solr.CzechStemFilterFactory"/>      
  650.       </analyzer>
  651.     </fieldType>
  652.    
  653.     <!-- Danish -->
  654.     <dynamicField name="*_txt_da" type="text_da"  indexed="true"  stored="true"/>
  655.     <fieldType name="text_da" class="solr.TextField" positionIncrementGap="100">
  656.       <analyzer>
  657.         <tokenizer class="solr.StandardTokenizerFactory"/>
  658.         <filter class="solr.LowerCaseFilterFactory"/>
  659.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_da.txt" format="snowball" />
  660.         <filter class="solr.SnowballPorterFilterFactory" language="Danish"/>      
  661.       </analyzer>
  662.     </fieldType>
  663.    
  664.     <!-- German -->
  665.     <dynamicField name="*_txt_de" type="text_de"  indexed="true"  stored="true"/>
  666.     <fieldType name="text_de" class="solr.TextField" positionIncrementGap="100">
  667.       <analyzer>
  668.         <tokenizer class="solr.StandardTokenizerFactory"/>
  669.         <filter class="solr.LowerCaseFilterFactory"/>
  670.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_de.txt" format="snowball" />
  671.         <filter class="solr.GermanNormalizationFilterFactory"/>
  672.         <filter class="solr.GermanLightStemFilterFactory"/>
  673.         <!-- less aggressive: <filter class="solr.GermanMinimalStemFilterFactory"/> -->
  674.         <!-- more aggressive: <filter class="solr.SnowballPorterFilterFactory" language="German2"/> -->
  675.       </analyzer>
  676.     </fieldType>
  677.    
  678.     <!-- Greek -->
  679.     <dynamicField name="*_txt_el" type="text_el"  indexed="true"  stored="true"/>
  680.     <fieldType name="text_el" class="solr.TextField" positionIncrementGap="100">
  681.       <analyzer>
  682.         <tokenizer class="solr.StandardTokenizerFactory"/>
  683.         <!-- greek specific lowercase for sigma -->
  684.         <filter class="solr.GreekLowerCaseFilterFactory"/>
  685.         <filter class="solr.StopFilterFactory" ignoreCase="false" words="lang/stopwords_el.txt" />
  686.         <filter class="solr.GreekStemFilterFactory"/>
  687.       </analyzer>
  688.     </fieldType>
  689.    
  690.     <!-- Spanish -->
  691.     <dynamicField name="*_txt_es" type="text_es"  indexed="true"  stored="true"/>
  692.     <fieldType name="text_es" class="solr.TextField" positionIncrementGap="100">
  693.       <analyzer>
  694.         <tokenizer class="solr.StandardTokenizerFactory"/>
  695.         <filter class="solr.LowerCaseFilterFactory"/>
  696.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_es.txt" format="snowball" />
  697.         <filter class="solr.SpanishLightStemFilterFactory"/>
  698.         <!-- more aggressive: <filter class="solr.SnowballPorterFilterFactory" language="Spanish"/> -->
  699.       </analyzer>
  700.     </fieldType>
  701.    
  702.     <!-- Basque -->
  703.     <dynamicField name="*_txt_eu" type="text_eu"  indexed="true"  stored="true"/>
  704.     <fieldType name="text_eu" class="solr.TextField" positionIncrementGap="100">
  705.       <analyzer>
  706.         <tokenizer class="solr.StandardTokenizerFactory"/>
  707.         <filter class="solr.LowerCaseFilterFactory"/>
  708.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_eu.txt" />
  709.         <filter class="solr.SnowballPorterFilterFactory" language="Basque"/>
  710.       </analyzer>
  711.     </fieldType>
  712.    
  713.     <!-- Persian -->
  714.     <dynamicField name="*_txt_fa" type="text_fa"  indexed="true"  stored="true"/>
  715.     <fieldType name="text_fa" class="solr.TextField" positionIncrementGap="100">
  716.       <analyzer>
  717.         <!-- for ZWNJ -->
  718.         <charFilter class="solr.PersianCharFilterFactory"/>
  719.         <tokenizer class="solr.StandardTokenizerFactory"/>
  720.         <filter class="solr.LowerCaseFilterFactory"/>
  721.         <filter class="solr.ArabicNormalizationFilterFactory"/>
  722.         <filter class="solr.PersianNormalizationFilterFactory"/>
  723.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_fa.txt" />
  724.       </analyzer>
  725.     </fieldType>
  726.    
  727.     <!-- Finnish -->
  728.     <dynamicField name="*_txt_fi" type="text_fi"  indexed="true"  stored="true"/>
  729.     <fieldType name="text_fi" class="solr.TextField" positionIncrementGap="100">
  730.       <analyzer>
  731.         <tokenizer class="solr.StandardTokenizerFactory"/>
  732.         <filter class="solr.LowerCaseFilterFactory"/>
  733.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_fi.txt" format="snowball" />
  734.         <filter class="solr.SnowballPorterFilterFactory" language="Finnish"/>
  735.         <!-- less aggressive: <filter class="solr.FinnishLightStemFilterFactory"/> -->
  736.       </analyzer>
  737.     </fieldType>
  738.    
  739.     <!-- French -->
  740.     <dynamicField name="*_txt_fr" type="text_fr"  indexed="true"  stored="true"/>
  741.     <fieldType name="text_fr" class="solr.TextField" positionIncrementGap="100">
  742.       <analyzer>
  743.         <tokenizer class="solr.StandardTokenizerFactory"/>
  744.         <!-- removes l', etc -->
  745.         <filter class="solr.ElisionFilterFactory" ignoreCase="true" articles="lang/contractions_fr.txt"/>
  746.         <filter class="solr.LowerCaseFilterFactory"/>
  747.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_fr.txt" format="snowball" />
  748.         <filter class="solr.FrenchLightStemFilterFactory"/>
  749.         <!-- less aggressive: <filter class="solr.FrenchMinimalStemFilterFactory"/> -->
  750.         <!-- more aggressive: <filter class="solr.SnowballPorterFilterFactory" language="French"/> -->
  751.       </analyzer>
  752.     </fieldType>
  753.    
  754.     <!-- Irish -->
  755.     <dynamicField name="*_txt_ga" type="text_ga"  indexed="true"  stored="true"/>
  756.     <fieldType name="text_ga" class="solr.TextField" positionIncrementGap="100">
  757.       <analyzer>
  758.         <tokenizer class="solr.StandardTokenizerFactory"/>
  759.         <!-- removes d', etc -->
  760.         <filter class="solr.ElisionFilterFactory" ignoreCase="true" articles="lang/contractions_ga.txt"/>
  761.         <!-- removes n-, etc. position increments is intentionally false! -->
  762.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/hyphenations_ga.txt"/>
  763.         <filter class="solr.IrishLowerCaseFilterFactory"/>
  764.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ga.txt"/>
  765.         <filter class="solr.SnowballPorterFilterFactory" language="Irish"/>
  766.       </analyzer>
  767.     </fieldType>
  768.    
  769.     <!-- Galician -->
  770.     <dynamicField name="*_txt_gl" type="text_gl"  indexed="true"  stored="true"/>
  771.     <fieldType name="text_gl" class="solr.TextField" positionIncrementGap="100">
  772.       <analyzer>
  773.         <tokenizer class="solr.StandardTokenizerFactory"/>
  774.         <filter class="solr.LowerCaseFilterFactory"/>
  775.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_gl.txt" />
  776.         <filter class="solr.GalicianStemFilterFactory"/>
  777.         <!-- less aggressive: <filter class="solr.GalicianMinimalStemFilterFactory"/> -->
  778.       </analyzer>
  779.     </fieldType>
  780.    
  781.     <!-- Hindi -->
  782.     <dynamicField name="*_txt_hi" type="text_hi"  indexed="true"  stored="true"/>
  783.     <fieldType name="text_hi" class="solr.TextField" positionIncrementGap="100">
  784.       <analyzer>
  785.         <tokenizer class="solr.StandardTokenizerFactory"/>
  786.         <filter class="solr.LowerCaseFilterFactory"/>
  787.         <!-- normalizes unicode representation -->
  788.         <filter class="solr.IndicNormalizationFilterFactory"/>
  789.         <!-- normalizes variation in spelling -->
  790.         <filter class="solr.HindiNormalizationFilterFactory"/>
  791.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_hi.txt" />
  792.         <filter class="solr.HindiStemFilterFactory"/>
  793.       </analyzer>
  794.     </fieldType>
  795.    
  796.     <!-- Hungarian -->
  797.     <dynamicField name="*_txt_hu" type="text_hu"  indexed="true"  stored="true"/>
  798.     <fieldType name="text_hu" class="solr.TextField" positionIncrementGap="100">
  799.       <analyzer>
  800.         <tokenizer class="solr.StandardTokenizerFactory"/>
  801.         <filter class="solr.LowerCaseFilterFactory"/>
  802.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_hu.txt" format="snowball" />
  803.         <filter class="solr.SnowballPorterFilterFactory" language="Hungarian"/>
  804.         <!-- less aggressive: <filter class="solr.HungarianLightStemFilterFactory"/> -->  
  805.       </analyzer>
  806.     </fieldType>
  807.    
  808.     <!-- Armenian -->
  809.     <dynamicField name="*_txt_hy" type="text_hy"  indexed="true"  stored="true"/>
  810.     <fieldType name="text_hy" class="solr.TextField" positionIncrementGap="100">
  811.       <analyzer>
  812.         <tokenizer class="solr.StandardTokenizerFactory"/>
  813.         <filter class="solr.LowerCaseFilterFactory"/>
  814.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_hy.txt" />
  815.         <filter class="solr.SnowballPorterFilterFactory" language="Armenian"/>
  816.       </analyzer>
  817.     </fieldType>
  818.    
  819.     <!-- Indonesian -->
  820.     <dynamicField name="*_txt_id" type="text_id"  indexed="true"  stored="true"/>
  821.     <fieldType name="text_id" class="solr.TextField" positionIncrementGap="100">
  822.       <analyzer>
  823.         <tokenizer class="solr.StandardTokenizerFactory"/>
  824.         <filter class="solr.LowerCaseFilterFactory"/>
  825.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_id.txt" />
  826.         <!-- for a less aggressive approach (only inflectional suffixes), set stemDerivational to false -->
  827.         <filter class="solr.IndonesianStemFilterFactory" stemDerivational="true"/>
  828.       </analyzer>
  829.     </fieldType>
  830.    
  831.     <!-- Italian -->
  832.   <dynamicField name="*_txt_it" type="text_it"  indexed="true"  stored="true"/>
  833.   <fieldType name="text_it" class="solr.TextField" positionIncrementGap="100">
  834.       <analyzer>
  835.         <tokenizer class="solr.StandardTokenizerFactory"/>
  836.         <!-- removes l', etc -->
  837.         <filter class="solr.ElisionFilterFactory" ignoreCase="true" articles="lang/contractions_it.txt"/>
  838.         <filter class="solr.LowerCaseFilterFactory"/>
  839.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_it.txt" format="snowball" />
  840.         <filter class="solr.ItalianLightStemFilterFactory"/>
  841.         <!-- more aggressive: <filter class="solr.SnowballPorterFilterFactory" language="Italian"/> -->
  842.       </analyzer>
  843.     </fieldType>
  844.    
  845.     <!-- Japanese using morphological analysis (see text_cjk for a configuration using bigramming)
  846.  
  847.         NOTE: If you want to optimize search for precision, use default operator AND in your query
  848.         parser config with <solrQueryParser defaultOperator="AND"/> further down in this file.  Use
  849.         OR if you would like to optimize for recall (default).
  850.    -->
  851.     <dynamicField name="*_txt_ja" type="text_ja"  indexed="true"  stored="true"/>
  852.     <fieldType name="text_ja" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="false">
  853.       <analyzer>
  854.         <!-- Kuromoji Japanese morphological analyzer/tokenizer (JapaneseTokenizer)
  855.  
  856.           Kuromoji has a search mode (default) that does segmentation useful for search.  A heuristic
  857.           is used to segment compounds into its parts and the compound itself is kept as synonym.
  858.  
  859.           Valid values for attribute mode are:
  860.              normal: regular segmentation
  861.              search: segmentation useful for search with synonyms compounds (default)
  862.            extended: same as search mode, but unigrams unknown words (experimental)
  863.  
  864.           For some applications it might be good to use search mode for indexing and normal mode for
  865.           queries to reduce recall and prevent parts of compounds from being matched and highlighted.
  866.           Use <analyzer type="index"> and <analyzer type="query"> for this and mode normal in query.
  867.  
  868.           Kuromoji also has a convenient user dictionary feature that allows overriding the statistical
  869.           model with your own entries for segmentation, part-of-speech tags and readings without a need
  870.           to specify weights.  Notice that user dictionaries have not been subject to extensive testing.
  871.  
  872.           User dictionary attributes are:
  873.                     userDictionary: user dictionary filename
  874.             userDictionaryEncoding: user dictionary encoding (default is UTF-8)
  875.  
  876.           See lang/userdict_ja.txt for a sample user dictionary file.
  877.  
  878.           Punctuation characters are discarded by default.  Use discardPunctuation="false" to keep them.
  879.  
  880.           See http://wiki.apache.org/solr/JapaneseLanguageSupport for more on Japanese language support.
  881.        -->
  882.         <tokenizer class="solr.JapaneseTokenizerFactory" mode="search"/>
  883.         <!--<tokenizer class="solr.JapaneseTokenizerFactory" mode="search" userDictionary="lang/userdict_ja.txt"/>-->
  884.         <!-- Reduces inflected verbs and adjectives to their base/dictionary forms (辞書形) -->
  885.         <filter class="solr.JapaneseBaseFormFilterFactory"/>
  886.         <!-- Removes tokens with certain part-of-speech tags -->
  887.         <filter class="solr.JapanesePartOfSpeechStopFilterFactory" tags="lang/stoptags_ja.txt" />
  888.         <!-- Normalizes full-width romaji to half-width and half-width kana to full-width (Unicode NFKC subset) -->
  889.         <filter class="solr.CJKWidthFilterFactory"/>
  890.         <!-- Removes common tokens typically not useful for search, but have a negative effect on ranking -->
  891.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ja.txt" />
  892.         <!-- Normalizes common katakana spelling variations by removing any last long sound character (U+30FC) -->
  893.         <filter class="solr.JapaneseKatakanaStemFilterFactory" minimumLength="4"/>
  894.         <!-- Lower-cases romaji characters -->
  895.         <filter class="solr.LowerCaseFilterFactory"/>
  896.       </analyzer>
  897.     </fieldType>
  898.    
  899.     <!-- Latvian -->
  900.     <dynamicField name="*_txt_lv" type="text_lv"  indexed="true"  stored="true"/>
  901.     <fieldType name="text_lv" class="solr.TextField" positionIncrementGap="100">
  902.       <analyzer>
  903.         <tokenizer class="solr.StandardTokenizerFactory"/>
  904.         <filter class="solr.LowerCaseFilterFactory"/>
  905.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_lv.txt" />
  906.         <filter class="solr.LatvianStemFilterFactory"/>
  907.       </analyzer>
  908.     </fieldType>
  909.    
  910.     <!-- Dutch -->
  911.     <dynamicField name="*_txt_nl" type="text_nl"  indexed="true"  stored="true"/>
  912.     <fieldType name="text_nl" class="solr.TextField" positionIncrementGap="100">
  913.       <analyzer>
  914.         <tokenizer class="solr.StandardTokenizerFactory"/>
  915.         <filter class="solr.LowerCaseFilterFactory"/>
  916.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_nl.txt" format="snowball" />
  917.         <filter class="solr.StemmerOverrideFilterFactory" dictionary="lang/stemdict_nl.txt" ignoreCase="false"/>
  918.         <filter class="solr.SnowballPorterFilterFactory" language="Dutch"/>
  919.       </analyzer>
  920.     </fieldType>
  921.    
  922.     <!-- Norwegian -->
  923.     <dynamicField name="*_txt_no" type="text_no"  indexed="true"  stored="true"/>
  924.     <fieldType name="text_no" class="solr.TextField" positionIncrementGap="100">
  925.       <analyzer>
  926.         <tokenizer class="solr.StandardTokenizerFactory"/>
  927.         <filter class="solr.LowerCaseFilterFactory"/>
  928.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_no.txt" format="snowball" />
  929.         <filter class="solr.SnowballPorterFilterFactory" language="Norwegian"/>
  930.         <!-- less aggressive: <filter class="solr.NorwegianLightStemFilterFactory"/> -->
  931.         <!-- singular/plural: <filter class="solr.NorwegianMinimalStemFilterFactory"/> -->
  932.       </analyzer>
  933.     </fieldType>
  934.    
  935.     <!-- Portuguese -->
  936.   <dynamicField name="*_txt_pt" type="text_pt"  indexed="true"  stored="true"/>
  937.   <fieldType name="text_pt" class="solr.TextField" positionIncrementGap="100">
  938.       <analyzer>
  939.         <tokenizer class="solr.StandardTokenizerFactory"/>
  940.         <filter class="solr.LowerCaseFilterFactory"/>
  941.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_pt.txt" format="snowball" />
  942.         <filter class="solr.PortugueseLightStemFilterFactory"/>
  943.         <!-- less aggressive: <filter class="solr.PortugueseMinimalStemFilterFactory"/> -->
  944.         <!-- more aggressive: <filter class="solr.SnowballPorterFilterFactory" language="Portuguese"/> -->
  945.         <!-- most aggressive: <filter class="solr.PortugueseStemFilterFactory"/> -->
  946.       </analyzer>
  947.     </fieldType>
  948.    
  949.     <!-- Romanian -->
  950.     <dynamicField name="*_txt_ro" type="text_ro"  indexed="true"  stored="true"/>
  951.     <fieldType name="text_ro" class="solr.TextField" positionIncrementGap="100">
  952.       <analyzer>
  953.         <tokenizer class="solr.StandardTokenizerFactory"/>
  954.         <filter class="solr.LowerCaseFilterFactory"/>
  955.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ro.txt" />
  956.         <filter class="solr.SnowballPorterFilterFactory" language="Romanian"/>
  957.       </analyzer>
  958.     </fieldType>
  959.    
  960.     <!-- Russian -->
  961.     <dynamicField name="*_txt_ru" type="text_ru"  indexed="true"  stored="true"/>
  962.     <fieldType name="text_ru" class="solr.TextField" positionIncrementGap="100">
  963.       <analyzer>
  964.         <tokenizer class="solr.StandardTokenizerFactory"/>
  965.         <filter class="solr.LowerCaseFilterFactory"/>
  966.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_ru.txt" format="snowball" />
  967.         <filter class="solr.SnowballPorterFilterFactory" language="Russian"/>
  968.         <!-- less aggressive: <filter class="solr.RussianLightStemFilterFactory"/> -->
  969.       </analyzer>
  970.     </fieldType>
  971.    
  972.     <!-- Swedish -->
  973.     <dynamicField name="*_txt_sv" type="text_sv"  indexed="true"  stored="true"/>
  974.     <fieldType name="text_sv" class="solr.TextField" positionIncrementGap="100">
  975.       <analyzer>
  976.         <tokenizer class="solr.StandardTokenizerFactory"/>
  977.         <filter class="solr.LowerCaseFilterFactory"/>
  978.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_sv.txt" format="snowball" />
  979.         <filter class="solr.SnowballPorterFilterFactory" language="Swedish"/>
  980.         <!-- less aggressive: <filter class="solr.SwedishLightStemFilterFactory"/> -->
  981.       </analyzer>
  982.     </fieldType>
  983.    
  984.     <!-- Thai -->
  985.     <dynamicField name="*_txt_th" type="text_th"  indexed="true"  stored="true"/>
  986.     <fieldType name="text_th" class="solr.TextField" positionIncrementGap="100">
  987.       <analyzer>
  988.         <tokenizer class="solr.ThaiTokenizerFactory"/>
  989.         <filter class="solr.LowerCaseFilterFactory"/>
  990.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="lang/stopwords_th.txt" />
  991.       </analyzer>
  992.     </fieldType>
  993.    
  994.     <!-- Turkish -->
  995.     <dynamicField name="*_txt_tr" type="text_tr"  indexed="true"  stored="true"/>
  996.     <fieldType name="text_tr" class="solr.TextField" positionIncrementGap="100">
  997.       <analyzer>
  998.         <tokenizer class="solr.StandardTokenizerFactory"/>
  999.         <filter class="solr.TurkishLowerCaseFilterFactory"/>
  1000.         <filter class="solr.StopFilterFactory" ignoreCase="false" words="lang/stopwords_tr.txt" />
  1001.         <filter class="solr.SnowballPorterFilterFactory" language="Turkish"/>
  1002.       </analyzer>
  1003.     </fieldType>
  1004.  
  1005.     <!-- Similarity is the scoring routine for each document vs. a query.
  1006.       A custom Similarity or SimilarityFactory may be specified here, but
  1007.       the default is fine for most applications.  
  1008.       For more info: http://wiki.apache.org/solr/SchemaXml#Similarity
  1009.    -->
  1010.     <!--
  1011.     <similarity class="com.example.solr.CustomSimilarityFactory">
  1012.       <str name="paramkey">param value</str>
  1013.     </similarity>
  1014.    -->
  1015.  
  1016. </schema>
Add Comment
Please, Sign In to add comment