Apache Lucene open-source search software
SOLR-10967: Cleanup the schema for the default configset
Varun Thackerd13e70f68313
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 296f470bfb9..5db3af3b5a6 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -449,8 +449,10 @@ Other Changes* SOLR-10456: Deprecate timeout related setters from SolrClients, and replace with Builder based implementation(Jason Gerlowski, Anshum Gupta)-* SOLR-11004: Consolidate SolrClient builder code in an abstract base class (Jason Gerlowski,- Anshum Gupta)+* SOLR-11004: Consolidate SolrClient builder code in an abstract base class (Jason Gerlowski, Anshum Gupta)++* SOLR-10967: Cleanup the default configset. The changes involve some documentation corrections, removing the currency+ field from the examples and a few dynamic fields (Varun Thacker)================== 6.7.0 ==================diff --git a/solr/core/src/test-files/solr/configsets/_default/conf/currency.xml b/solr/core/src/test-files/solr/configsets/_default/conf/currency.xmldeleted file mode 100644index 532221a90bc..00000000000--- a/solr/core/src/test-files/solr/configsets/_default/conf/currency.xml+++ /dev/null@@ -1,67 +0,0 @@-<?xml version="1.0" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<!-- Example exchange rates file for CurrencyFieldType named "currency" in example schema -->--<currencyConfig version="1.0">- <rates>- <!-- Updated from http://www.exchangerate.com/ at 2011-09-27 -->- <rate from="USD" to="ARS" rate="4.333871" comment="ARGENTINA Peso" />- <rate from="USD" to="AUD" rate="1.025768" comment="AUSTRALIA Dollar" />- <rate from="USD" to="EUR" rate="0.743676" comment="European Euro" />- <rate from="USD" to="BRL" rate="1.881093" comment="BRAZIL Real" />- <rate from="USD" to="CAD" rate="1.030815" comment="CANADA Dollar" />- <rate from="USD" to="CLP" rate="519.0996" comment="CHILE Peso" />- <rate from="USD" to="CNY" rate="6.387310" comment="CHINA Yuan" />- <rate from="USD" to="CZK" rate="18.47134" comment="CZECH REP. Koruna" />- <rate from="USD" to="DKK" rate="5.515436" comment="DENMARK Krone" />- <rate from="USD" to="HKD" rate="7.801922" comment="HONG KONG Dollar" />- <rate from="USD" to="HUF" rate="215.6169" comment="HUNGARY Forint" />- <rate from="USD" to="ISK" rate="118.1280" comment="ICELAND Krona" />- <rate from="USD" to="INR" rate="49.49088" comment="INDIA Rupee" />- <rate from="USD" to="XDR" rate="0.641358" comment="INTNL MON. FUND SDR" />- <rate from="USD" to="ILS" rate="3.709739" comment="ISRAEL Sheqel" />- <rate from="USD" to="JPY" rate="76.32419" comment="JAPAN Yen" />- <rate from="USD" to="KRW" rate="1169.173" comment="KOREA (SOUTH) Won" />- <rate from="USD" to="KWD" rate="0.275142" comment="KUWAIT Dinar" />- <rate from="USD" to="MXN" rate="13.85895" comment="MEXICO Peso" />- <rate from="USD" to="NZD" rate="1.285159" comment="NEW ZEALAND Dollar" />- <rate from="USD" to="NOK" rate="5.859035" comment="NORWAY Krone" />- <rate from="USD" to="PKR" rate="87.57007" comment="PAKISTAN Rupee" />- <rate from="USD" to="PEN" rate="2.730683" comment="PERU Sol" />- <rate from="USD" to="PHP" rate="43.62039" comment="PHILIPPINES Peso" />- <rate from="USD" to="PLN" rate="3.310139" comment="POLAND Zloty" />- <rate from="USD" to="RON" rate="3.100932" comment="ROMANIA Leu" />- <rate from="USD" to="RUB" rate="32.14663" comment="RUSSIA Ruble" />- <rate from="USD" to="SAR" rate="3.750465" comment="SAUDI ARABIA Riyal" />- <rate from="USD" to="SGD" rate="1.299352" comment="SINGAPORE Dollar" />- <rate from="USD" to="ZAR" rate="8.329761" comment="SOUTH AFRICA Rand" />- <rate from="USD" to="SEK" rate="6.883442" comment="SWEDEN Krona" />- <rate from="USD" to="CHF" rate="0.906035" comment="SWITZERLAND Franc" />- <rate from="USD" to="TWD" rate="30.40283" comment="TAIWAN Dollar" />- <rate from="USD" to="THB" rate="30.89487" comment="THAILAND Baht" />- <rate from="USD" to="AED" rate="3.672955" comment="U.A.E. Dirham" />- <rate from="USD" to="UAH" rate="7.988582" comment="UKRAINE Hryvnia" />- <rate from="USD" to="GBP" rate="0.647910" comment="UNITED KINGDOM Pound" />-- <!-- Cross-rates for some common currencies -->- <rate from="EUR" to="GBP" rate="0.869914" />- <rate from="EUR" to="NOK" rate="7.800095" />- <rate from="GBP" to="NOK" rate="8.966508" />- </rates>-</currencyConfig>diff --git a/solr/core/src/test-files/solr/configsets/_default/conf/managed-schema b/solr/core/src/test-files/solr/configsets/_default/conf/managed-schemaindex a88300a979e..bdbbf8fdfee 100644--- a/solr/core/src/test-files/solr/configsets/_default/conf/managed-schema+++ b/solr/core/src/test-files/solr/configsets/_default/conf/managed-schema@@ -16,17 +16,14 @@limitations under the License.-->-<!--- This is the Solr schema file. This file should be named "schema.xml" and- should be in the conf directory under the solr home- (i.e. ./solr/conf/schema.xml by default)- or located where the classloader for the Solr webapp can find it.+<!--This example schema is the recommended starting point for users.It should be kept correct and concise, usable out-of-the-box.+For more information, on how to customize this file, please see- http://wiki.apache.org/solr/SchemaXml+ http://lucene.apache.org/solr/guide/documents-fields-and-schema-design.htmlPERFORMANCE NOTE: this schema includes many optional features and should notbe used for benchmarking. To improve performance one could@@ -39,10 +36,6 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the ConcurrentUpdateSolrServer- java client.- - Remember to run the JVM in server mode, and use a higher logging level- that avoids logging every request--><schema name="default-config" version="1.6">@@ -70,14 +63,12 @@fieldTypes sectionindexed: true if this field should be indexed (searchable or sortable)stored: true if this field should be retrievable- docValues: true if this field should have doc values. Doc values are- useful (required, if you are using *Point fields) for faceting,- grouping, sorting and function queries. Doc values will make the index+ docValues: true if this field should have doc values. Doc Values is+ recommended (required, if you are using *Point fields) for faceting,+ grouping, sorting and function queries. Doc Values will make the indexfaster to load, more NRT-friendly and more memory-efficient.- They however come with some limitations: they are currently only- supported by StrField, UUIDField, all Trie*Fields and *PointFields,- and depending on the field type, they might require the field to be- single-valued, be required or have a default value (check the+ They are currently only supported by StrField, UUIDField, all Trie*Fields and *PointFields.+ Some field types may have limitations on using Doc Values (check thedocumentation of the field type you're interested in for more information)multiValued: true if this field may contain multiple values per documentomitNorms: (expert) set to true to omit the norms associated with@@ -106,10 +97,9 @@trailing underscores (e.g. _version_) are reserved.-->- <!-- In this _default configset, only three fields are pre-declared:- id, _version_, and _text_. All other fields will be type guessed and added via the- "add-unknown-fields-to-the-schema" update request processor chain declared- in solrconfig.xml.+ <!-- In this _default configset, only four fields are pre-declared:+ id, _version_, and _text_ and _root_. All other fields will be type guessed and added via the+ "add-unknown-fields-to-the-schema" update request processor chain declared in solrconfig.xml.Note that many dynamic fields are also defined - you can use them to specify afield's type via field naming conventions - see below.@@ -117,8 +107,9 @@WARNING: The _text_ catch-all field will significantly increase your index size.If you don't need it, consider removing it and the corresponding copyField directive.-->+<field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />- <!-- doc values are enabled by default for primitive types such as long so we don't index the version field -->+ <!-- docValues are enabled by default for long type so we don't need to index the version field --><field name="_version_" type="long" indexed="false" stored="false"/><field name="_root_" type="string" indexed="true" stored="false" docValues="false" /><field name="_text_" type="text_general" indexed="true" stored="false" multiValued="true"/>@@ -128,20 +119,16 @@<!-- <copyField source="*" dest="_text_"/> --><!-- Dynamic field definitions allow using convention over configuration- for fields via the specification of patterns to match field names.+ for fields via the specification of patterns to match field names.EXAMPLE: name="*_i" will match any field ending in _i (like myid_i, z_i)- RESTRICTION: the glob-like pattern in the name attribute must have- a "*" only at the start or the end. -->+ RESTRICTION: the glob-like pattern in the name attribute must have a "*" only at the start or the end. --><dynamicField name="*_i" type="int" indexed="true" stored="true"/><dynamicField name="*_is" type="ints" indexed="true" stored="true"/><dynamicField name="*_s" type="string" indexed="true" stored="true" />- <dynamicField name="*_s_ns" type="string" indexed="true" stored="false" /><dynamicField name="*_ss" type="strings" indexed="true" stored="true"/><dynamicField name="*_l" type="long" indexed="true" stored="true"/>- <dynamicField name="*_l_ns" type="long" indexed="true" stored="false"/><dynamicField name="*_ls" type="longs" indexed="true" stored="true"/>- <dynamicField name="*_t" type="text_general" indexed="true" stored="true"/><dynamicField name="*_txt" type="text_general" indexed="true" stored="true"/><dynamicField name="*_b" type="boolean" indexed="true" stored="true"/><dynamicField name="*_bs" type="booleans" indexed="true" stored="true"/>@@ -184,22 +171,8 @@<dynamicField name="*_dpi" type="delimited_payloads_int" indexed="true" stored="true"/><dynamicField name="*_dps" type="delimited_payloads_string" indexed="true" stored="true"/>- <dynamicField name="*_c" type="currency" indexed="true" stored="true"/>-- <dynamicField name="ignored_*" type="ignored" multiValued="true"/><dynamicField name="attr_*" type="text_general" indexed="true" stored="true" multiValued="true"/>- <dynamicField name="random_*" type="random" />-- <!-- uncomment the following to ignore any fields that don't already match an existing- field name or dynamic field, rather than reporting them as an error.- alternately, change the type="ignored" to some other type e.g. "text" if you want- unknown fields indexed and/or stored by default-- NB: use of "*" dynamic fields will disable field type guessing and adding- unknown fields to the schema. -->- <!--dynamicField name="*" type="ignored" multiValued="true" /-->-<!-- Field to use to determine and enforce document uniqueness.Unless this field is marked with required="false", it will be a required field-->@@ -220,18 +193,6 @@standard package such as org.apache.solr.analysis-->- <!-- The StrField type is not analyzed, but indexed/stored verbatim.- It supports doc values but in that case the field needs to be- single-valued and either required or have a default value.- -->- <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" />- <fieldType name="strings" class="solr.StrField" sortMissingLast="true" multiValued="true" docValues="true" />-- <!-- boolean type: "true" or "false" -->- <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>-- <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true" multiValued="true"/>-<!-- sortMissingLast and sortMissingFirst attributes are optional attributes arecurrently supported on types that are sorted internally as stringsand on numeric types.@@ -246,7 +207,18 @@- If sortMissingLast="false" and sortMissingFirst="false" (the default),then default lucene sorting will be used which places docs without thefield first in an ascending sort and last in a descending sort.- -->+ -->++ <!-- The StrField type is not analyzed, but indexed/stored verbatim.+ It supports doc values but in that case the field needs to be+ single-valued and either required or have a default value.+ -->+ <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" />+ <fieldType name="strings" class="solr.StrField" sortMissingLast="true" multiValued="true" docValues="true" />++ <!-- boolean type: "true" or "false" -->+ <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>+ <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true" multiValued="true"/><!--Numeric field types that index values using KD-trees. *Point fields are faster and more efficient than Trie* fields both, at@@ -332,19 +304,6 @@<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --><fieldType name="binary" class="solr.BinaryField"/>- <!-- The "RandomSortField" is not used to store or search any- data. You can declare fields of this type it in your schema- to generate pseudo-random orderings of your docs for sorting- or function purposes. The ordering is generated based on the field- name and the version of the index. As long as the index version- remains unchanged, and the same field name is reused,- the ordering of the docs will be consistent.- If you want different psuedo-random orderings of documents,- for the same version of the index, use a dynamicField and- change the field name in the request.- -->- <fieldType name="random" class="solr.RandomSortField" indexed="true" />-<!-- solr.TextField allows the specification of custom text analyzersspecified as a tokenizer and a list of token filters. Differentanalyzers may be specified for indexing and querying.@@ -354,7 +313,7 @@matching across fields.For more info on customizing your analyzer chain, please see- http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters+ http://lucene.apache.org/solr/guide/understanding-analyzers-tokenizers-and-filters.html#understanding-analyzers-tokenizers-and-filters--><!-- One can also specify an existing Analyzer class that has a@@ -397,11 +356,9 @@</analyzer></fieldType>- <!-- A text field with defaults appropriate for English: it- tokenizes with StandardTokenizer, removes English stop words- (lang/stopwords_en.txt), down cases, protects words from protwords.txt, and- finally applies Porter's stemming. The query time analyzer- also applies synonyms from synonyms.txt. -->+ <!-- A text field with defaults appropriate for English: it tokenizes with StandardTokenizer,+ removes English stop words (lang/stopwords_en.txt), down cases, protects words from protwords.txt, and+ finally applies Porter's stemming. The query time analyzer also applies synonyms from synonyms.txt. --><dynamicField name="*_txt_en" type="text_en" indexed="true" stored="true"/><fieldType name="text_en" class="solr.TextField" positionIncrementGap="100"><analyzer type="index">@@ -579,10 +536,6 @@</analyzer></fieldType>- <!-- since fields of this type are by default not stored or indexed,- any data added to them will be ignored outright. -->- <fieldType name="ignored" stored="false" indexed="false" docValues="false" multiValued="true" class="solr.StrField" />-<!-- This point type indexes the coordinates as separate fields (subFields)If subFieldType is defined, it references a type, and a dynamic fielddefinition is created matching *___<typename>. Alternately, if@@ -600,9 +553,9 @@<!-- A specialized field for geospatial search filters and distance sorting. --><fieldType name="location" class="solr.LatLonPointSpatialField" docValues="true"/>- <!-- An alternative geospatial field type new to Solr 4. It supports multiValued and polygon shapes.- For more information about this and other Spatial fields new to Solr 4, see:- http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4+ <!-- A geospatial field type that supports multiValued and polygon shapes.+ For more information about this and other spatial fields see:+ http://lucene.apache.org/solr/guide/spatial-search.html--><fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"geo="true" distErrPct="0.025" maxDistErr="0.001" distanceUnits="kilometers" />@@ -627,26 +580,6 @@</analyzer></fieldType>- <!-- Money/currency field type. See http://wiki.apache.org/solr/MoneyFieldType- Parameters:- amountLongSuffix: Required. Refers to a dynamic field for the raw amount sub-field.- The dynamic field must have a field type that extends LongValueFieldType.- Note: If you expect to use Atomic Updates, this dynamic field may not be stored.- codeStrSuffix: Required. Refers to a dynamic field for the currency code sub-field.- The dynamic field must have a field type that extends StrField.- Note: If you expect to use Atomic Updates, this dynamic field may not be stored.- defaultCurrency: Specifies the default currency if none specified. Defaults to "USD"- providerClass: Lets you plug in other exchange provider backend:- solr.FileExchangeRateProvider is the default and takes one parameter:- currencyConfig: name of an xml file holding exchange rates- solr.OpenExchangeRatesOrgProvider uses rates from openexchangerates.org:- ratesFileLocation: URL or path to rates JSON file (default latest.json on the web)- refreshInterval: Number of minutes between each rates fetch (default: 1440, min: 60)- -->- <fieldType name="currency" class="solr.CurrencyFieldType" amountLongSuffix="_l_ns" codeStrSuffix="_s_ns"- defaultCurrency="USD" currencyConfig="currency.xml" />--<!-- some examples for different languages (generally ordered by ISO code) --><!-- Arabic -->@@ -936,8 +869,6 @@See lang/userdict_ja.txt for a sample user dictionary file.Punctuation characters are discarded by default. Use discardPunctuation="false" to keep them.-- See http://wiki.apache.org/solr/JapaneseLanguageSupport for more on Japanese language support.--><tokenizer class="solr.JapaneseTokenizerFactory" mode="search"/><!--<tokenizer class="solr.JapaneseTokenizerFactory" mode="search" userDictionary="lang/userdict_ja.txt"/>-->@@ -1065,7 +996,7 @@<!-- Similarity is the scoring routine for each document vs. a query.A custom Similarity or SimilarityFactory may be specified here, butthe default is fine for most applications.- For more info: http://wiki.apache.org/solr/SchemaXml#Similarity+ For more info: http://lucene.apache.org/solr/guide/other-schema-elements.html#OtherSchemaElements-Similarity--><!--<similarity class="com.example.solr.CustomSimilarityFactory">diff --git a/solr/server/solr/configsets/_default/conf/currency.xml b/solr/server/solr/configsets/_default/conf/currency.xmldeleted file mode 100644index 532221a90bc..00000000000--- a/solr/server/solr/configsets/_default/conf/currency.xml+++ /dev/null@@ -1,67 +0,0 @@-<?xml version="1.0" ?>-<!--- Licensed to the Apache Software Foundation (ASF) under one or more- contributor license agreements. See the NOTICE file distributed with- this work for additional information regarding copyright ownership.- The ASF licenses this file to You under the Apache License, Version 2.0- (the "License"); you may not use this file except in compliance with- the License. You may obtain a copy of the License at-- http://www.apache.org/licenses/LICENSE-2.0-- Unless required by applicable law or agreed to in writing, software- distributed under the License is distributed on an "AS IS" BASIS,- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.- See the License for the specific language governing permissions and- limitations under the License.--->--<!-- Example exchange rates file for CurrencyFieldType named "currency" in example schema -->--<currencyConfig version="1.0">- <rates>- <!-- Updated from http://www.exchangerate.com/ at 2011-09-27 -->- <rate from="USD" to="ARS" rate="4.333871" comment="ARGENTINA Peso" />- <rate from="USD" to="AUD" rate="1.025768" comment="AUSTRALIA Dollar" />- <rate from="USD" to="EUR" rate="0.743676" comment="European Euro" />- <rate from="USD" to="BRL" rate="1.881093" comment="BRAZIL Real" />- <rate from="USD" to="CAD" rate="1.030815" comment="CANADA Dollar" />- <rate from="USD" to="CLP" rate="519.0996" comment="CHILE Peso" />- <rate from="USD" to="CNY" rate="6.387310" comment="CHINA Yuan" />- <rate from="USD" to="CZK" rate="18.47134" comment="CZECH REP. Koruna" />- <rate from="USD" to="DKK" rate="5.515436" comment="DENMARK Krone" />- <rate from="USD" to="HKD" rate="7.801922" comment="HONG KONG Dollar" />- <rate from="USD" to="HUF" rate="215.6169" comment="HUNGARY Forint" />- <rate from="USD" to="ISK" rate="118.1280" comment="ICELAND Krona" />- <rate from="USD" to="INR" rate="49.49088" comment="INDIA Rupee" />- <rate from="USD" to="XDR" rate="0.641358" comment="INTNL MON. FUND SDR" />- <rate from="USD" to="ILS" rate="3.709739" comment="ISRAEL Sheqel" />- <rate from="USD" to="JPY" rate="76.32419" comment="JAPAN Yen" />- <rate from="USD" to="KRW" rate="1169.173" comment="KOREA (SOUTH) Won" />- <rate from="USD" to="KWD" rate="0.275142" comment="KUWAIT Dinar" />- <rate from="USD" to="MXN" rate="13.85895" comment="MEXICO Peso" />- <rate from="USD" to="NZD" rate="1.285159" comment="NEW ZEALAND Dollar" />- <rate from="USD" to="NOK" rate="5.859035" comment="NORWAY Krone" />- <rate from="USD" to="PKR" rate="87.57007" comment="PAKISTAN Rupee" />- <rate from="USD" to="PEN" rate="2.730683" comment="PERU Sol" />- <rate from="USD" to="PHP" rate="43.62039" comment="PHILIPPINES Peso" />- <rate from="USD" to="PLN" rate="3.310139" comment="POLAND Zloty" />- <rate from="USD" to="RON" rate="3.100932" comment="ROMANIA Leu" />- <rate from="USD" to="RUB" rate="32.14663" comment="RUSSIA Ruble" />- <rate from="USD" to="SAR" rate="3.750465" comment="SAUDI ARABIA Riyal" />- <rate from="USD" to="SGD" rate="1.299352" comment="SINGAPORE Dollar" />- <rate from="USD" to="ZAR" rate="8.329761" comment="SOUTH AFRICA Rand" />- <rate from="USD" to="SEK" rate="6.883442" comment="SWEDEN Krona" />- <rate from="USD" to="CHF" rate="0.906035" comment="SWITZERLAND Franc" />- <rate from="USD" to="TWD" rate="30.40283" comment="TAIWAN Dollar" />- <rate from="USD" to="THB" rate="30.89487" comment="THAILAND Baht" />- <rate from="USD" to="AED" rate="3.672955" comment="U.A.E. Dirham" />- <rate from="USD" to="UAH" rate="7.988582" comment="UKRAINE Hryvnia" />- <rate from="USD" to="GBP" rate="0.647910" comment="UNITED KINGDOM Pound" />-- <!-- Cross-rates for some common currencies -->- <rate from="EUR" to="GBP" rate="0.869914" />- <rate from="EUR" to="NOK" rate="7.800095" />- <rate from="GBP" to="NOK" rate="8.966508" />- </rates>-</currencyConfig>diff --git a/solr/server/solr/configsets/_default/conf/managed-schema b/solr/server/solr/configsets/_default/conf/managed-schemaindex a88300a979e..bdbbf8fdfee 100644--- a/solr/server/solr/configsets/_default/conf/managed-schema+++ b/solr/server/solr/configsets/_default/conf/managed-schema@@ -16,17 +16,14 @@limitations under the License.-->-<!--- This is the Solr schema file. This file should be named "schema.xml" and- should be in the conf directory under the solr home- (i.e. ./solr/conf/schema.xml by default)- or located where the classloader for the Solr webapp can find it.+<!--This example schema is the recommended starting point for users.It should be kept correct and concise, usable out-of-the-box.+For more information, on how to customize this file, please see- http://wiki.apache.org/solr/SchemaXml+ http://lucene.apache.org/solr/guide/documents-fields-and-schema-design.htmlPERFORMANCE NOTE: this schema includes many optional features and should notbe used for benchmarking. To improve performance one could@@ -39,10 +36,6 @@- for best index size and searching performance, set "index" to falsefor all general text fields, use copyField to copy them to thecatchall "text" field, and use that for searching.- - For maximum indexing performance, use the ConcurrentUpdateSolrServer- java client.- - Remember to run the JVM in server mode, and use a higher logging level- that avoids logging every request--><schema name="default-config" version="1.6">@@ -70,14 +63,12 @@fieldTypes sectionindexed: true if this field should be indexed (searchable or sortable)stored: true if this field should be retrievable- docValues: true if this field should have doc values. Doc values are- useful (required, if you are using *Point fields) for faceting,- grouping, sorting and function queries. Doc values will make the index+ docValues: true if this field should have doc values. Doc Values is+ recommended (required, if you are using *Point fields) for faceting,+ grouping, sorting and function queries. Doc Values will make the indexfaster to load, more NRT-friendly and more memory-efficient.- They however come with some limitations: they are currently only- supported by StrField, UUIDField, all Trie*Fields and *PointFields,- and depending on the field type, they might require the field to be- single-valued, be required or have a default value (check the+ They are currently only supported by StrField, UUIDField, all Trie*Fields and *PointFields.+ Some field types may have limitations on using Doc Values (check thedocumentation of the field type you're interested in for more information)multiValued: true if this field may contain multiple values per documentomitNorms: (expert) set to true to omit the norms associated with@@ -106,10 +97,9 @@trailing underscores (e.g. _version_) are reserved.-->- <!-- In this _default configset, only three fields are pre-declared:- id, _version_, and _text_. All other fields will be type guessed and added via the- "add-unknown-fields-to-the-schema" update request processor chain declared- in solrconfig.xml.+ <!-- In this _default configset, only four fields are pre-declared:+ id, _version_, and _text_ and _root_. All other fields will be type guessed and added via the+ "add-unknown-fields-to-the-schema" update request processor chain declared in solrconfig.xml.Note that many dynamic fields are also defined - you can use them to specify afield's type via field naming conventions - see below.@@ -117,8 +107,9 @@WARNING: The _text_ catch-all field will significantly increase your index size.If you don't need it, consider removing it and the corresponding copyField directive.-->+<field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />- <!-- doc values are enabled by default for primitive types such as long so we don't index the version field -->+ <!-- docValues are enabled by default for long type so we don't need to index the version field --><field name="_version_" type="long" indexed="false" stored="false"/><field name="_root_" type="string" indexed="true" stored="false" docValues="false" /><field name="_text_" type="text_general" indexed="true" stored="false" multiValued="true"/>@@ -128,20 +119,16 @@<!-- <copyField source="*" dest="_text_"/> --><!-- Dynamic field definitions allow using convention over configuration- for fields via the specification of patterns to match field names.+ for fields via the specification of patterns to match field names.EXAMPLE: name="*_i" will match any field ending in _i (like myid_i, z_i)- RESTRICTION: the glob-like pattern in the name attribute must have- a "*" only at the start or the end. -->+ RESTRICTION: the glob-like pattern in the name attribute must have a "*" only at the start or the end. --><dynamicField name="*_i" type="int" indexed="true" stored="true"/><dynamicField name="*_is" type="ints" indexed="true" stored="true"/><dynamicField name="*_s" type="string" indexed="true" stored="true" />- <dynamicField name="*_s_ns" type="string" indexed="true" stored="false" /><dynamicField name="*_ss" type="strings" indexed="true" stored="true"/><dynamicField name="*_l" type="long" indexed="true" stored="true"/>- <dynamicField name="*_l_ns" type="long" indexed="true" stored="false"/><dynamicField name="*_ls" type="longs" indexed="true" stored="true"/>- <dynamicField name="*_t" type="text_general" indexed="true" stored="true"/><dynamicField name="*_txt" type="text_general" indexed="true" stored="true"/><dynamicField name="*_b" type="boolean" indexed="true" stored="true"/><dynamicField name="*_bs" type="booleans" indexed="true" stored="true"/>@@ -184,22 +171,8 @@<dynamicField name="*_dpi" type="delimited_payloads_int" indexed="true" stored="true"/><dynamicField name="*_dps" type="delimited_payloads_string" indexed="true" stored="true"/>- <dynamicField name="*_c" type="currency" indexed="true" stored="true"/>-- <dynamicField name="ignored_*" type="ignored" multiValued="true"/><dynamicField name="attr_*" type="text_general" indexed="true" stored="true" multiValued="true"/>- <dynamicField name="random_*" type="random" />-- <!-- uncomment the following to ignore any fields that don't already match an existing- field name or dynamic field, rather than reporting them as an error.- alternately, change the type="ignored" to some other type e.g. "text" if you want- unknown fields indexed and/or stored by default-- NB: use of "*" dynamic fields will disable field type guessing and adding- unknown fields to the schema. -->- <!--dynamicField name="*" type="ignored" multiValued="true" /-->-<!-- Field to use to determine and enforce document uniqueness.Unless this field is marked with required="false", it will be a required field-->@@ -220,18 +193,6 @@standard package such as org.apache.solr.analysis-->- <!-- The StrField type is not analyzed, but indexed/stored verbatim.- It supports doc values but in that case the field needs to be- single-valued and either required or have a default value.- -->- <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" />- <fieldType name="strings" class="solr.StrField" sortMissingLast="true" multiValued="true" docValues="true" />-- <!-- boolean type: "true" or "false" -->- <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>-- <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true" multiValued="true"/>-<!-- sortMissingLast and sortMissingFirst attributes are optional attributes arecurrently supported on types that are sorted internally as stringsand on numeric types.@@ -246,7 +207,18 @@- If sortMissingLast="false" and sortMissingFirst="false" (the default),then default lucene sorting will be used which places docs without thefield first in an ascending sort and last in a descending sort.- -->+ -->++ <!-- The StrField type is not analyzed, but indexed/stored verbatim.+ It supports doc values but in that case the field needs to be+ single-valued and either required or have a default value.+ -->+ <fieldType name="string" class="solr.StrField" sortMissingLast="true" docValues="true" />+ <fieldType name="strings" class="solr.StrField" sortMissingLast="true" multiValued="true" docValues="true" />++ <!-- boolean type: "true" or "false" -->+ <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>+ <fieldType name="booleans" class="solr.BoolField" sortMissingLast="true" multiValued="true"/><!--Numeric field types that index values using KD-trees. *Point fields are faster and more efficient than Trie* fields both, at@@ -332,19 +304,6 @@<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --><fieldType name="binary" class="solr.BinaryField"/>- <!-- The "RandomSortField" is not used to store or search any- data. You can declare fields of this type it in your schema- to generate pseudo-random orderings of your docs for sorting- or function purposes. The ordering is generated based on the field- name and the version of the index. As long as the index version- remains unchanged, and the same field name is reused,- the ordering of the docs will be consistent.- If you want different psuedo-random orderings of documents,- for the same version of the index, use a dynamicField and- change the field name in the request.- -->- <fieldType name="random" class="solr.RandomSortField" indexed="true" />-<!-- solr.TextField allows the specification of custom text analyzersspecified as a tokenizer and a list of token filters. Differentanalyzers may be specified for indexing and querying.@@ -354,7 +313,7 @@matching across fields.For more info on customizing your analyzer chain, please see- http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters+ http://lucene.apache.org/solr/guide/understanding-analyzers-tokenizers-and-filters.html#understanding-analyzers-tokenizers-and-filters--><!-- One can also specify an existing Analyzer class that has a@@ -397,11 +356,9 @@</analyzer></fieldType>- <!-- A text field with defaults appropriate for English: it- tokenizes with StandardTokenizer, removes English stop words- (lang/stopwords_en.txt), down cases, protects words from protwords.txt, and- finally applies Porter's stemming. The query time analyzer- also applies synonyms from synonyms.txt. -->+ <!-- A text field with defaults appropriate for English: it tokenizes with StandardTokenizer,+ removes English stop words (lang/stopwords_en.txt), down cases, protects words from protwords.txt, and+ finally applies Porter's stemming. The query time analyzer also applies synonyms from synonyms.txt. --><dynamicField name="*_txt_en" type="text_en" indexed="true" stored="true"/><fieldType name="text_en" class="solr.TextField" positionIncrementGap="100"><analyzer type="index">@@ -579,10 +536,6 @@</analyzer></fieldType>- <!-- since fields of this type are by default not stored or indexed,- any data added to them will be ignored outright. -->- <fieldType name="ignored" stored="false" indexed="false" docValues="false" multiValued="true" class="solr.StrField" />-<!-- This point type indexes the coordinates as separate fields (subFields)If subFieldType is defined, it references a type, and a dynamic fielddefinition is created matching *___<typename>. Alternately, if@@ -600,9 +553,9 @@<!-- A specialized field for geospatial search filters and distance sorting. --><fieldType name="location" class="solr.LatLonPointSpatialField" docValues="true"/>- <!-- An alternative geospatial field type new to Solr 4. It supports multiValued and polygon shapes.- For more information about this and other Spatial fields new to Solr 4, see:- http://wiki.apache.org/solr/SolrAdaptersForLuceneSpatial4+ <!-- A geospatial field type that supports multiValued and polygon shapes.+ For more information about this and other spatial fields see:+ http://lucene.apache.org/solr/guide/spatial-search.html--><fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"geo="true" distErrPct="0.025" maxDistErr="0.001" distanceUnits="kilometers" />@@ -627,26 +580,6 @@</analyzer></fieldType>- <!-- Money/currency field type. See http://wiki.apache.org/solr/MoneyFieldType- Parameters:- amountLongSuffix: Required. Refers to a dynamic field for the raw amount sub-field.- The dynamic field must have a field type that extends LongValueFieldType.- Note: If you expect to use Atomic Updates, this dynamic field may not be stored.- codeStrSuffix: Required. Refers to a dynamic field for the currency code sub-field.- The dynamic field must have a field type that extends StrField.- Note: If you expect to use Atomic Updates, this dynamic field may not be stored.- defaultCurrency: Specifies the default currency if none specified. Defaults to "USD"- providerClass: Lets you plug in other exchange provider backend:- solr.FileExchangeRateProvider is the default and takes one parameter:- currencyConfig: name of an xml file holding exchange rates- solr.OpenExchangeRatesOrgProvider uses rates from openexchangerates.org:- ratesFileLocation: URL or path to rates JSON file (default latest.json on the web)- refreshInterval: Number of minutes between each rates fetch (default: 1440, min: 60)- -->- <fieldType name="currency" class="solr.CurrencyFieldType" amountLongSuffix="_l_ns" codeStrSuffix="_s_ns"- defaultCurrency="USD" currencyConfig="currency.xml" />--<!-- some examples for different languages (generally ordered by ISO code) --><!-- Arabic -->@@ -936,8 +869,6 @@See lang/userdict_ja.txt for a sample user dictionary file.Punctuation characters are discarded by default. Use discardPunctuation="false" to keep them.-- See http://wiki.apache.org/solr/JapaneseLanguageSupport for more on Japanese language support.--><tokenizer class="solr.JapaneseTokenizerFactory" mode="search"/><!--<tokenizer class="solr.JapaneseTokenizerFactory" mode="search" userDictionary="lang/userdict_ja.txt"/>-->@@ -1065,7 +996,7 @@<!-- Similarity is the scoring routine for each document vs. a query.A custom Similarity or SimilarityFactory may be specified here, butthe default is fine for most applications.- For more info: http://wiki.apache.org/solr/SchemaXml#Similarity+ For more info: http://lucene.apache.org/solr/guide/other-schema-elements.html#OtherSchemaElements-Similarity--><!--<similarity class="com.example.solr.CustomSimilarityFactory">