| <?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. |
| --> |
| <schema name="test" version="1.4"> |
| |
| <field name="id" type="string" indexed="true" stored="true" multiValued="false" required="true"/> |
| <field name="_version_" type="long" indexed="false" stored="false" docValues="true" multiValued="false"/> |
| <field name="text" type="text" indexed="true" stored="false"/> |
| <field name="subject" type="text" indexed="true" stored="true"/> |
| <field name="ssto" type="string" indexed="false" stored="true"/> |
| |
| <dynamicField name="*_srpt" type="location_rpt" indexed="true" stored="true"/> |
| <dynamicField name="*_i" type="int" indexed="true" stored="true"/> |
| <!-- for testing if score psuedofield is erroneously treated as multivalued |
| when a matching dynamic field exists |
| --> |
| <dynamicField name="*core" type="ignored" multiValued="true"/> |
| <dynamicField name="*_ss" type="string" multiValued="true"/> |
| |
| <!-- unused, but play nice with existing solrconfig so we don't have to create a new one just for this test --> |
| <dynamicField name="*" type="string" indexed="true" stored="true" /> |
| |
| <uniqueKey>id</uniqueKey> |
| |
| <fieldType name="ignored" class="solr.StrField" indexed="false" stored="false"/> |
| <fieldType name="int" class="${solr.tests.IntegerFieldType}" docValues="${solr.tests.numeric.dv}" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> |
| <fieldType name="long" class="${solr.tests.LongFieldType}" docValues="${solr.tests.numeric.dv}" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> |
| <fieldType name="string" class="solr.StrField" sortMissingLast="true" /> |
| <fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType" |
| geo="true" distErrPct="0.025" maxDistErr="0.001" distanceUnits="kilometers" /> |
| <fieldType name="text" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true"> |
| <analyzer type="index"> |
| <tokenizer class="solr.MockTokenizerFactory"/> |
| <filter class="solr.StopFilterFactory" |
| ignoreCase="true" |
| words="stopwords.txt" |
| /> |
| <filter class="solr.WordDelimiterGraphFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" |
| catenateNumbers="1" catenateAll="0" splitOnCaseChange="1"/> |
| <filter class="solr.LowerCaseFilterFactory"/> |
| <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/> |
| <filter class="solr.PorterStemFilterFactory"/> |
| <filter class="solr.FlattenGraphFilterFactory"/> |
| </analyzer> |
| <analyzer type="query"> |
| <tokenizer class="solr.MockTokenizerFactory"/> |
| <filter class="solr.SynonymGraphFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> |
| <filter class="solr.StopFilterFactory" |
| ignoreCase="true" |
| words="stopwords.txt" |
| /> |
| <filter class="solr.WordDelimiterGraphFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="0" |
| catenateNumbers="0" catenateAll="0" splitOnCaseChange="1"/> |
| <filter class="solr.LowerCaseFilterFactory"/> |
| <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/> |
| <filter class="solr.PorterStemFilterFactory"/> |
| </analyzer> |
| </fieldType> |
| |
| </schema> |