Created
September 2, 2013 20:55
-
-
Save sciolist/6417198 to your computer and use it in GitHub Desktop.
basic solr config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<schema name="example" version="1.5"> | |
<uniqueKey>id</uniqueKey> | |
<fields> | |
<field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> | |
<field name="client" type="string" indexed="true" stored="true" required="true" multiValued="false" /> | |
<field name="_version_" type="long" indexed="true" stored="true"/> | |
<dynamicField name="*_i" type="tint" indexed="true" stored="true" multiValued="false" /> | |
<dynamicField name="*_txt" type="text_sv" indexed="true" stored="true" multiValued="false" /> | |
<dynamicField name="*_arr" type="string" indexed="true" stored="true" multiValued="true" /> | |
<dynamicField name="*" type="string" indexed="true" stored="true" multiValued="false" /> | |
</fields> | |
<types> | |
<fieldType name="string" class="solr.StrField" sortMissingLast="true" /> | |
<fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/> | |
<fieldtype name="binary" class="solr.BinaryField"/> | |
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" positionIncrementGap="0"/> | |
<fieldType name="float" class="solr.TrieFloatField" precisionStep="0" positionIncrementGap="0"/> | |
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/> | |
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" positionIncrementGap="0"/> | |
<fieldType name="date" class="solr.TrieDateField" precisionStep="0" positionIncrementGap="0"/> | |
<fieldType name="tint" class="solr.TrieIntField" precisionStep="8" positionIncrementGap="0"/> | |
<fieldType name="tfloat" class="solr.TrieFloatField" precisionStep="8" positionIncrementGap="0"/> | |
<fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" positionIncrementGap="0"/> | |
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/> | |
<fieldType name="tdate" class="solr.TrieDateField" precisionStep="6" positionIncrementGap="0"/> | |
<fieldType name="pint" class="solr.IntField"/> | |
<fieldType name="plong" class="solr.LongField"/> | |
<fieldType name="pfloat" class="solr.FloatField"/> | |
<fieldType name="pdouble" class="solr.DoubleField"/> | |
<fieldType name="pdate" class="solr.DateField" sortMissingLast="true"/> | |
<fieldType name="random" class="solr.RandomSortField" indexed="true" /> | |
<fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"> | |
<analyzer type="index"> | |
<tokenizer class="solr.StandardTokenizerFactory"/> | |
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /> | |
<filter class="solr.LowerCaseFilterFactory"/> | |
</analyzer> | |
<analyzer type="query"> | |
<tokenizer class="solr.StandardTokenizerFactory"/> | |
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" enablePositionIncrements="true" /> | |
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/> | |
<filter class="solr.LowerCaseFilterFactory"/> | |
</analyzer> | |
</fieldType> | |
<fieldType name="text_sv" class="solr.TextField" positionIncrementGap="100"> | |
<analyzer> | |
<tokenizer class="solr.StandardTokenizerFactory"/> | |
<filter class="solr.LowerCaseFilterFactory"/> | |
<filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords_sv.txt" format="snowball" enablePositionIncrements="true"/> | |
<filter class="solr.SnowballPorterFilterFactory" language="Swedish"/> | |
</analyzer> | |
</fieldType> | |
</types> | |
</schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment