SOLR-6826: fieldType capitalization is not consistent with the rest of case-sensitive field names

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1645349 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erick Erickson 2014-12-13 20:49:03 +00:00
parent c186cbfcbc
commit 2d93746254
82 changed files with 970 additions and 967 deletions

View File

@ -488,6 +488,9 @@ Other Changes
the example directory instead of server/solr. (Alexandre Rafalovitch, Anshum Gupta, hossman, the example directory instead of server/solr. (Alexandre Rafalovitch, Anshum Gupta, hossman,
Timothy Potter) Timothy Potter)
* SOLR-6826: fieldType capitalization is not consistent with the rest of case-sensitive field names.
(Alexandre Rafalovitch via Erick Erickson)
================== 4.10.3 ================== ================== 4.10.3 ==================
Bug Fixes Bug Fixes

View File

@ -17,7 +17,7 @@
<schema name="test" version="1.0"> <schema name="test" version="1.0">
<types> <types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true" multiValued="false"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true" multiValued="false"/>
<fieldType name="text_icufolding" class="solr.TextField"> <fieldType name="text_icufolding" class="solr.TextField">

View File

@ -23,18 +23,18 @@
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<!-- basic text field --> <!-- basic text field -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="sort_ar_t" class="solr.ICUCollationField" locale="ar"/> <fieldType name="sort_ar_t" class="solr.ICUCollationField" locale="ar"/>
<fieldtype name="sort_de_t" class="solr.ICUCollationField" locale="de" strength="primary"/> <fieldType name="sort_de_t" class="solr.ICUCollationField" locale="de" strength="primary"/>
<fieldtype name="sort_tr_canon_t" class="solr.ICUCollationField" locale="tr" strength="primary" decomposition="canonical"/> <fieldType name="sort_tr_canon_t" class="solr.ICUCollationField" locale="tr" strength="primary" decomposition="canonical"/>
<fieldtype name="sort_da_t" class="solr.ICUCollationField" locale="da" strength="primary"/> <fieldType name="sort_da_t" class="solr.ICUCollationField" locale="da" strength="primary"/>
<fieldtype name="sort_custom_t" class="solr.ICUCollationField" custom="customrules.dat" strength="primary"/> <fieldType name="sort_custom_t" class="solr.ICUCollationField" custom="customrules.dat" strength="primary"/>
</types> </types>
<fields> <fields>

View File

@ -23,18 +23,18 @@
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<!-- basic text field --> <!-- basic text field -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="sort_ar_t" class="solr.ICUCollationField" locale="ar"/> <fieldType name="sort_ar_t" class="solr.ICUCollationField" locale="ar"/>
<fieldtype name="sort_de_t" class="solr.ICUCollationField" locale="de" strength="primary"/> <fieldType name="sort_de_t" class="solr.ICUCollationField" locale="de" strength="primary"/>
<fieldtype name="sort_tr_canon_t" class="solr.ICUCollationField" locale="tr" strength="primary" decomposition="canonical"/> <fieldType name="sort_tr_canon_t" class="solr.ICUCollationField" locale="tr" strength="primary" decomposition="canonical"/>
<fieldtype name="sort_da_t" class="solr.ICUCollationField" locale="da" strength="primary"/> <fieldType name="sort_da_t" class="solr.ICUCollationField" locale="da" strength="primary"/>
<fieldtype name="sort_custom_t" class="solr.ICUCollationField" custom="customrules.dat" strength="primary"/> <fieldType name="sort_custom_t" class="solr.ICUCollationField" custom="customrules.dat" strength="primary"/>
</types> </types>
<fields> <fields>

View File

@ -23,27 +23,27 @@
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<!-- basic text field --> <!-- basic text field -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- ignores punctuation and whitespace --> <!-- ignores punctuation and whitespace -->
<fieldtype name="sort_ignore_punctuation_t" class="solr.ICUCollationField" <fieldType name="sort_ignore_punctuation_t" class="solr.ICUCollationField"
locale="en" strength="primary" alternate="shifted"/> locale="en" strength="primary" alternate="shifted"/>
<!-- ignores only whitespace --> <!-- ignores only whitespace -->
<fieldtype name="sort_ignore_space_t" class="solr.ICUCollationField" <fieldType name="sort_ignore_space_t" class="solr.ICUCollationField"
locale="en" strength="primary" alternate="shifted" variableTop=" "/> locale="en" strength="primary" alternate="shifted" variableTop=" "/>
<!-- ignores only accents, but not case --> <!-- ignores only accents, but not case -->
<fieldtype name="sort_ignore_accents_t" class="solr.ICUCollationField" <fieldType name="sort_ignore_accents_t" class="solr.ICUCollationField"
locale="en" strength="primary" caseLevel="true"/> locale="en" strength="primary" caseLevel="true"/>
<!-- sorts numerics in numeric order --> <!-- sorts numerics in numeric order -->
<fieldtype name="sort_numerics_t" class="solr.ICUCollationField" <fieldType name="sort_numerics_t" class="solr.ICUCollationField"
locale="en" numeric="true"/> locale="en" numeric="true"/>
<!-- sorts uppercase before lowercase --> <!-- sorts uppercase before lowercase -->
<fieldtype name="sort_uppercase_first_t" class="solr.ICUCollationField" <fieldType name="sort_uppercase_first_t" class="solr.ICUCollationField"
locale="en" strength="tertiary" caseFirst="upper"/> locale="en" strength="tertiary" caseFirst="upper"/>
</types> </types>

View File

@ -31,7 +31,7 @@
<!-- field type definitions... note that the "name" attribute is <!-- field type definitions... note that the "name" attribute is
just a label to be used by field definitions. The "class" just a label to be used by field definitions. The "class"
attribute and any other attributes determine the real type and attribute and any other attributes determine the real type and
behavior of the fieldtype. behavior of the fieldType.
--> -->
<!-- numeric field types that store and index the text <!-- numeric field types that store and index the text
@ -46,10 +46,10 @@
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="boolean" class="solr.BoolField" /> <fieldType name="boolean" class="solr.BoolField" />
<fieldtype name="string" class="solr.StrField" /> <fieldType name="string" class="solr.StrField" />
<fieldType name="uuid" class="solr.UUIDField" /> <fieldType name="uuid" class="solr.UUIDField" />

View File

@ -255,7 +255,7 @@
<!-- since fields of this type are by default not stored or indexed, any data added to <!-- since fields of this type are by default not stored or indexed, any data added to
them will be ignored outright them will be ignored outright
--> -->
<fieldtype name="ignored" stored="false" indexed="false" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" class="solr.StrField" />
</types> </types>

View File

@ -190,7 +190,7 @@
<!-- since fields of this type are by default not stored or indexed, any data added to <!-- since fields of this type are by default not stored or indexed, any data added to
them will be ignored outright them will be ignored outright
--> -->
<fieldtype name="ignored" stored="false" indexed="false" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" class="solr.StrField" />
</types> </types>

View File

@ -29,7 +29,7 @@
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/> <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="ignored" stored="false" indexed="false" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" class="solr.StrField" />
</types> </types>
<fields> <fields>
<field name="id" type="string" indexed="true" stored="true" required="true" /> <field name="id" type="string" indexed="true" stored="true" required="true" />
@ -57,4 +57,4 @@
<uniqueKey>id</uniqueKey> <uniqueKey>id</uniqueKey>
<defaultSearchField>desc</defaultSearchField> <defaultSearchField>desc</defaultSearchField>
<solrQueryParser defaultOperator="OR"/> <solrQueryParser defaultOperator="OR"/>
</schema> </schema>

View File

@ -240,7 +240,7 @@
<!-- since fields of this type are by default not stored or indexed, any data added to <!-- since fields of this type are by default not stored or indexed, any data added to
them will be ignored outright them will be ignored outright
--> -->
<fieldtype name="ignored" stored="false" indexed="false" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" class="solr.StrField" />
</types> </types>

View File

@ -52,48 +52,48 @@
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/> <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/>
<!-- Field type demonstrating an Analyzer failure --> <!-- Field type demonstrating an Analyzer failure -->
<fieldtype name="failtype1" class="solr.TextField"> <fieldType name="failtype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Demonstrating ignoreCaseChange --> <!-- Demonstrating ignoreCaseChange -->
<fieldtype name="wdf_nocase" class="solr.TextField"> <fieldType name="wdf_nocase" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="wdf_preserve" class="solr.TextField"> <fieldType name="wdf_preserve" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- HighlitText optimizes storage for (long) columns which will be highlit --> <!-- HighlitText optimizes storage for (long) columns which will be highlit -->
<fieldtype name="highlittext" class="solr.TextField" compressThreshold="345" /> <fieldType name="highlittext" class="solr.TextField" compressThreshold="345" />
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" sortMissingLast="true" omitNorms="true"/> <fieldType name="date" class="solr.TrieDateField" sortMissingLast="true" omitNorms="true"/>
<!-- solr.TextField allows the specification of custom <!-- solr.TextField allows the specification of custom
text analyzers specified as a tokenizer and a list text analyzers specified as a tokenizer and a list
of token filters. of token filters.
--> -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.ClassicTokenizerFactory"/> <tokenizer class="solr.ClassicTokenizerFactory"/>
<filter class="solr.ClassicFilterFactory"/> <filter class="solr.ClassicFilterFactory"/>
@ -101,68 +101,68 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="nametext" class="solr.TextField"> <fieldType name="nametext" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/> <analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/>
</fieldtype> </fieldType>
<fieldtype name="teststop" class="solr.TextField"> <fieldType name="teststop" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.LowerCaseTokenizerFactory"/> <tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.ClassicFilterFactory"/> <filter class="solr.ClassicFilterFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtypes in this section isolate tokenizers and tokenfilters for testing --> <!-- fieldTypes in this section isolate tokenizers and tokenfilters for testing -->
<fieldtype name="lowertok" class="solr.TextField"> <fieldType name="lowertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="keywordtok" class="solr.TextField"> <fieldType name="keywordtok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtok" class="solr.TextField"> <fieldType name="standardtok" class="solr.TextField">
<analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="lettertok" class="solr.TextField"> <fieldType name="lettertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="whitetok" class="solr.TextField"> <fieldType name="whitetok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLstandardtok" class="solr.TextField"> <fieldType name="HTMLstandardtok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLwhitetok" class="solr.TextField"> <fieldType name="HTMLwhitetok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtokfilt" class="solr.TextField"> <fieldType name="standardtokfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.ClassicTokenizerFactory"/> <tokenizer class="solr.ClassicTokenizerFactory"/>
<filter class="solr.ClassicFilterFactory"/> <filter class="solr.ClassicFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardfilt" class="solr.TextField"> <fieldType name="standardfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.ClassicFilterFactory"/> <filter class="solr.ClassicFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lowerfilt" class="solr.TextField"> <fieldType name="lowerfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="patternreplacefilt" class="solr.TextField"> <fieldType name="patternreplacefilt" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
<filter class="solr.PatternReplaceFilterFactory" <filter class="solr.PatternReplaceFilterFactory"
@ -172,52 +172,52 @@
<analyzer type="query"> <analyzer type="query">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="porterfilt" class="solr.TextField"> <fieldType name="porterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtype name="snowballfilt" class="solr.TextField"> <!-- fieldType name="snowballfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SnowballPorterFilterFactory"/> <filter class="solr.SnowballPorterFilterFactory"/>
</analyzer> </analyzer>
</fieldtype --> </fieldType -->
<fieldtype name="engporterfilt" class="solr.TextField"> <fieldType name="engporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custengporterfilt" class="solr.TextField"> <fieldType name="custengporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/> <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="stopfilt" class="solr.TextField"> <fieldType name="stopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custstopfilt" class="solr.TextField"> <fieldType name="custstopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lengthfilt" class="solr.TextField"> <fieldType name="lengthfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="2" max="5"/> <filter class="solr.LengthFilterFactory" min="2" max="5"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -232,10 +232,10 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- more flexible in matching skus, but more chance of a false match --> <!-- more flexible in matching skus, but more chance of a false match -->
<fieldtype name="skutype1" class="solr.TextField"> <fieldType name="skutype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -246,10 +246,10 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="skutype2" class="solr.TextField"> <fieldType name="skutype2" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -260,20 +260,20 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="syn" class="solr.TextField"> <fieldType name="syn" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed <!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed
synonyms "better" synonyms "better"
--> -->
<fieldtype name="dedup" class="solr.TextField"> <fieldType name="dedup" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" <filter class="solr.SynonymFilterFactory"
@ -281,17 +281,17 @@
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory" /> <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="unstored" class="solr.StrField" indexed="true" stored="false"/> <fieldType name="unstored" class="solr.StrField" indexed="true" stored="false"/>
<fieldtype name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>

View File

@ -27,12 +27,12 @@
<schema name="test" version="1.5"> <schema name="test" version="1.5">
<types> <types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<!-- solr.TextField allows the specification of custom <!-- solr.TextField allows the specification of custom
text analyzers specified as a tokenizer and a list text analyzers specified as a tokenizer and a list
of token filters. of token filters.
--> -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
@ -40,11 +40,11 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="nametext" class="solr.TextField"> <fieldType name="nametext" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/> <analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/>
</fieldtype> </fieldType>
</types> </types>

View File

@ -249,7 +249,7 @@
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<!-- The "RandomSortField" is not used to store or search any <!-- The "RandomSortField" is not used to store or search any
data. You can declare fields of this type it in your schema data. You can declare fields of this type it in your schema
@ -482,15 +482,15 @@
</fieldType> </fieldType>
<!-- <!--
<fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" > <fieldType name="phonetic" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
--> -->
<fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > <fieldType name="payloads" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- <!--
@ -506,7 +506,7 @@
--> -->
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- lowercases the entire field value, keeping it as a single token. --> <!-- lowercases the entire field value, keeping it as a single token. -->
<fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
@ -543,7 +543,7 @@
<!-- since fields of this type are by default not stored or indexed, <!-- since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. --> any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<!-- This point type indexes the coordinates as separate fields (subFields) <!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field If subFieldType is defined, it references a type, and a dynamic field
@ -565,7 +565,7 @@
A Geohash is a compact representation of a latitude longitude pair in a single field. A Geohash is a compact representation of a latitude longitude pair in a single field.
See http://wiki.apache.org/solr/SpatialSearch See http://wiki.apache.org/solr/SpatialSearch
--> -->
<fieldtype name="geohash" class="solr.GeoHashField"/> <fieldType name="geohash" class="solr.GeoHashField"/>
<!-- Money/currency field type. See http://wiki.apache.org/solr/MoneyFieldType <!-- Money/currency field type. See http://wiki.apache.org/solr/MoneyFieldType
Parameters: Parameters:

View File

@ -264,7 +264,7 @@
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<!-- The "RandomSortField" is not used to store or search any <!-- The "RandomSortField" is not used to store or search any
data. You can declare fields of this type it in your schema data. You can declare fields of this type it in your schema
@ -496,14 +496,14 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" > <fieldType name="phonetic" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > <fieldType name="payloads" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- <!--
@ -519,7 +519,7 @@
--> -->
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- lowercases the entire field value, keeping it as a single token. --> <!-- lowercases the entire field value, keeping it as a single token. -->
<fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
@ -556,7 +556,7 @@
<!-- since fields of this type are by default not stored or indexed, <!-- since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. --> any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<!-- This point type indexes the coordinates as separate fields (subFields) <!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field If subFieldType is defined, it references a type, and a dynamic field

View File

@ -264,7 +264,7 @@
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<!-- The "RandomSortField" is not used to store or search any <!-- The "RandomSortField" is not used to store or search any
data. You can declare fields of this type it in your schema data. You can declare fields of this type it in your schema
@ -496,14 +496,14 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" > <fieldType name="phonetic" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > <fieldType name="payloads" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- <!--
@ -519,7 +519,7 @@
--> -->
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- lowercases the entire field value, keeping it as a single token. --> <!-- lowercases the entire field value, keeping it as a single token. -->
<fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
@ -556,7 +556,7 @@
<!-- since fields of this type are by default not stored or indexed, <!-- since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. --> any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<!-- This point type indexes the coordinates as separate fields (subFields) <!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field If subFieldType is defined, it references a type, and a dynamic field

View File

@ -216,7 +216,7 @@
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<!-- The "RandomSortField" is not used to store or search any <!-- The "RandomSortField" is not used to store or search any
data. You can declare fields of this type it in your schema data. You can declare fields of this type it in your schema
@ -449,15 +449,15 @@
</fieldType> </fieldType>
<!-- <!--
<fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" > <fieldType name="phonetic" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
--> -->
<fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > <fieldType name="payloads" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- <!--
@ -473,7 +473,7 @@
--> -->
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- lowercases the entire field value, keeping it as a single token. --> <!-- lowercases the entire field value, keeping it as a single token. -->
<fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
@ -510,7 +510,7 @@
<!-- since fields of this type are by default not stored or indexed, <!-- since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. --> any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<!-- This point type indexes the coordinates as separate fields (subFields) <!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field If subFieldType is defined, it references a type, and a dynamic field
@ -532,7 +532,7 @@
A Geohash is a compact representation of a latitude longitude pair in a single field. A Geohash is a compact representation of a latitude longitude pair in a single field.
See http://wiki.apache.org/solr/SpatialSearch See http://wiki.apache.org/solr/SpatialSearch
--> -->
<fieldtype name="geohash" class="solr.GeoHashField"/> <fieldType name="geohash" class="solr.GeoHashField"/>
<!-- Money/currency field type. See http://wiki.apache.org/solr/MoneyFieldType <!-- Money/currency field type. See http://wiki.apache.org/solr/MoneyFieldType
Parameters: Parameters:

View File

@ -76,7 +76,7 @@
Binary data type. The data should be sent/retrieved in as Base64 Binary data type. The data should be sent/retrieved in as Base64
encoded Strings encoded Strings
--> -->
<fieldtype name="binary" class="solr.BinaryField" /> <fieldType name="binary" class="solr.BinaryField" />
<!-- <!--
If sortMissingLast="true", then a sort on this field will cause If sortMissingLast="true", then a sort on this field will cause
@ -368,15 +368,15 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="phonetic" stored="false" indexed="true" <fieldType name="phonetic" stored="false" indexed="true"
class="solr.TextField"> class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory" /> <tokenizer class="solr.StandardTokenizerFactory" />
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false" /> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="payloads" stored="false" indexed="true" <fieldType name="payloads" stored="false" indexed="true"
class="solr.TextField"> class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory" /> <tokenizer class="solr.MockTokenizerFactory" />
@ -395,7 +395,7 @@
<filter class="solr.DelimitedPayloadTokenFilterFactory" <filter class="solr.DelimitedPayloadTokenFilterFactory"
encoder="float" /> encoder="float" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- <!--
lowercases the entire field value, keeping it as a single token. lowercases the entire field value, keeping it as a single token.
@ -413,7 +413,7 @@
since fields of this type are by default not stored or indexed, since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. any data added to them will be ignored outright.
--> -->
<fieldtype name="ignored" stored="false" indexed="false" <fieldType name="ignored" stored="false" indexed="false"
multiValued="true" class="solr.StrField" /> multiValued="true" class="solr.StrField" />
</types> </types>

View File

@ -76,7 +76,7 @@
Binary data type. The data should be sent/retrieved in as Base64 Binary data type. The data should be sent/retrieved in as Base64
encoded Strings encoded Strings
--> -->
<fieldtype name="binary" class="solr.BinaryField" /> <fieldType name="binary" class="solr.BinaryField" />
<!-- <!--
If sortMissingLast="true", then a sort on this field will cause If sortMissingLast="true", then a sort on this field will cause
@ -364,15 +364,15 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="phonetic" stored="false" indexed="true" <fieldType name="phonetic" stored="false" indexed="true"
class="solr.TextField"> class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory" /> <tokenizer class="solr.StandardTokenizerFactory" />
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false" /> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="payloads" stored="false" indexed="true" <fieldType name="payloads" stored="false" indexed="true"
class="solr.TextField"> class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory" /> <tokenizer class="solr.MockTokenizerFactory" />
@ -391,7 +391,7 @@
<filter class="solr.DelimitedPayloadTokenFilterFactory" <filter class="solr.DelimitedPayloadTokenFilterFactory"
encoder="float" /> encoder="float" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- <!--
lowercases the entire field value, keeping it as a single token. lowercases the entire field value, keeping it as a single token.
@ -409,7 +409,7 @@
since fields of this type are by default not stored or indexed, since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. any data added to them will be ignored outright.
--> -->
<fieldtype name="ignored" stored="false" indexed="false" <fieldType name="ignored" stored="false" indexed="false"
multiValued="true" class="solr.StrField" /> multiValued="true" class="solr.StrField" />
</types> </types>

View File

@ -22,14 +22,14 @@
<schema name="test" version="1.5"> <schema name="test" version="1.5">
<types> <types>
<fieldtype name="long" class="solr.TrieLongField" stored="true" indexed="true" /> <fieldType name="long" class="solr.TrieLongField" stored="true" indexed="true" />
<fieldtype name="int" class="solr.TrieIntField" precisionStep="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0"/>
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="org.apache.solr.analysis.ThrowingMockTokenFilterFactory" exceptionClassName="java.lang.RuntimeException"/> <filter class="org.apache.solr.analysis.ThrowingMockTokenFilterFactory" exceptionClassName="java.lang.RuntimeException"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>

View File

@ -19,7 +19,7 @@
<schema name="bad-schema-dup-field" version="1.0"> <schema name="bad-schema-dup-field" version="1.0">
<types> <types>
<fieldType name="string" class="solr.StrField"/> <fieldType name="string" class="solr.StrField"/>
<fieldtype name="text" class="solr.TextField" /> <fieldType name="text" class="solr.TextField" />
</types> </types>

View File

@ -19,7 +19,7 @@
<schema name="bad-schema-dup-fieldType" version="1.0"> <schema name="bad-schema-dup-fieldType" version="1.0">
<types> <types>
<fieldtype name="text" class="solr.TextField" /> <fieldType name="text" class="solr.TextField" />
<fieldType name="string" class="solr.StrField"/> <fieldType name="string" class="solr.StrField"/>
<!-- BEGIN BAD STUFF --> <!-- BEGIN BAD STUFF -->

View File

@ -18,7 +18,7 @@
<schema name="test" version="1.5"> <schema name="test" version="1.5">
<types> <types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
</types> </types>
<fields> <fields>
<field name="text" type="string" indexed="true" stored="true"/> <field name="text" type="string" indexed="true" stored="true"/>

View File

@ -18,7 +18,7 @@
<schema name="test" version="1.5"> <schema name="test" version="1.5">
<types> <types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
</types> </types>
<fields> <fields>
<field name="text" type="string" indexed="true" stored="true"/> <field name="text" type="string" indexed="true" stored="true"/>

View File

@ -18,7 +18,7 @@
<schema name="test" version="1.5"> <schema name="test" version="1.5">
<types> <types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
</types> </types>
<fields> <fields>
<field name="text" type="string" indexed="true" stored="true"/> <field name="text" type="string" indexed="true" stored="true"/>

View File

@ -18,7 +18,7 @@
<schema name="test" version="1.5"> <schema name="test" version="1.5">
<types> <types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
</types> </types>
<fields> <fields>
<field name="text" type="string" indexed="true" stored="true"/> <field name="text" type="string" indexed="true" stored="true"/>

View File

@ -18,7 +18,7 @@
<schema name="test" version="1.5"> <schema name="test" version="1.5">
<types> <types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
</types> </types>

View File

@ -23,8 +23,8 @@
<fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" multiValued="true" positionIncrementGap="0"/> <fieldType name="tlong" class="solr.TrieLongField" precisionStep="8" multiValued="true" positionIncrementGap="0"/>
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" multiValued="true" positionIncrementGap="0"/> <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" multiValued="true" positionIncrementGap="0"/>
<fieldType name="tdate" class="solr.TrieDateField" precisionStep="6" multiValued="true" positionIncrementGap="0"/> <fieldType name="tdate" class="solr.TrieDateField" precisionStep="6" multiValued="true" positionIncrementGap="0"/>
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true" multiValued="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true" multiValued="true"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/> <fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
<fieldType name="text" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="text" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer> <analyzer>

View File

@ -31,7 +31,7 @@
<!-- field type definitions... note that the "name" attribute is <!-- field type definitions... note that the "name" attribute is
just a label to be used by field definitions. The "class" just a label to be used by field definitions. The "class"
attribute and any other attributes determine the real type and attribute and any other attributes determine the real type and
behavior of the fieldtype. behavior of the fieldType.
--> -->
<!-- <!--
@ -58,14 +58,14 @@
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/> <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/>
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" sortMissingLast="true"/> <fieldType name="date" class="solr.TrieDateField" sortMissingLast="true"/>

View File

@ -17,23 +17,23 @@
--> -->
<schema name="test-class-name-shortening-on-serialization" version="1.5"> <schema name="test-class-name-shortening-on-serialization" version="1.5">
<types> <types>
<fieldtype name="fullClassNames" class="org.apache.solr.schema.TextField"> <fieldType name="fullClassNames" class="org.apache.solr.schema.TextField">
<analyzer> <analyzer>
<charFilter class="org.apache.solr.analysis.MockCharFilterFactory" remainder="0"/> <charFilter class="org.apache.solr.analysis.MockCharFilterFactory" remainder="0"/>
<tokenizer class="org.apache.solr.analysis.MockTokenizerFactory"/> <tokenizer class="org.apache.solr.analysis.MockTokenizerFactory"/>
<filter class="org.apache.solr.analysis.MockTokenFilterFactory" stopset="empty"/> <filter class="org.apache.solr.analysis.MockTokenFilterFactory" stopset="empty"/>
</analyzer> </analyzer>
<similarity class="org.apache.lucene.misc.SweetSpotSimilarity"/> <similarity class="org.apache.lucene.misc.SweetSpotSimilarity"/>
</fieldtype> </fieldType>
<fieldtype name="shortenedClassNames" class="solr.TextField"> <fieldType name="shortenedClassNames" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.MockCharFilterFactory" remainder="0"/> <charFilter class="solr.MockCharFilterFactory" remainder="0"/>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.MockTokenFilterFactory" stopset="empty"/> <filter class="solr.MockTokenFilterFactory" stopset="empty"/>
</analyzer> </analyzer>
<similarity class="solr.SweetSpotSimilarityFactory"/> <similarity class="solr.SweetSpotSimilarityFactory"/>
</fieldtype> </fieldType>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
</types> </types>
<fields> <fields>
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="true"/> <field name="id" type="string" indexed="true" stored="true" multiValued="false" required="true"/>

View File

@ -23,19 +23,19 @@
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<!-- basic text field --> <!-- basic text field -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="sort_ar_t" class="solr.CollationField" language="ar"/> <fieldType name="sort_ar_t" class="solr.CollationField" language="ar"/>
<fieldtype name="sort_de_t" class="solr.CollationField" language="de" strength="primary"/> <fieldType name="sort_de_t" class="solr.CollationField" language="de" strength="primary"/>
<fieldtype name="sort_tr_canon_t" class="solr.CollationField" language="tr" strength="primary" decomposition="canonical"/> <fieldType name="sort_tr_canon_t" class="solr.CollationField" language="tr" strength="primary" decomposition="canonical"/>
<fieldtype name="sort_zh_full_t" class="solr.CollationField" language="zh" strength="identical" decomposition="full"/> <fieldType name="sort_zh_full_t" class="solr.CollationField" language="zh" strength="identical" decomposition="full"/>
<fieldtype name="sort_da_t" class="solr.CollationField" language="da" strength="primary"/> <fieldType name="sort_da_t" class="solr.CollationField" language="da" strength="primary"/>
<fieldtype name="sort_custom_t" class="solr.CollationField" custom="customrules.dat" strength="primary"/> <fieldType name="sort_custom_t" class="solr.CollationField" custom="customrules.dat" strength="primary"/>
</types> </types>
<fields> <fields>

View File

@ -23,19 +23,19 @@
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<!-- basic text field --> <!-- basic text field -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="sort_ar_t" class="solr.CollationField" language="ar"/> <fieldType name="sort_ar_t" class="solr.CollationField" language="ar"/>
<fieldtype name="sort_de_t" class="solr.CollationField" language="de" strength="primary"/> <fieldType name="sort_de_t" class="solr.CollationField" language="de" strength="primary"/>
<fieldtype name="sort_tr_canon_t" class="solr.CollationField" language="tr" strength="primary" decomposition="canonical"/> <fieldType name="sort_tr_canon_t" class="solr.CollationField" language="tr" strength="primary" decomposition="canonical"/>
<fieldtype name="sort_zh_full_t" class="solr.CollationField" language="zh" strength="identical" decomposition="full"/> <fieldType name="sort_zh_full_t" class="solr.CollationField" language="zh" strength="identical" decomposition="full"/>
<fieldtype name="sort_da_t" class="solr.CollationField" language="da" strength="primary"/> <fieldType name="sort_da_t" class="solr.CollationField" language="da" strength="primary"/>
<fieldtype name="sort_custom_t" class="solr.CollationField" custom="customrules.dat" strength="primary"/> <fieldType name="sort_custom_t" class="solr.CollationField" custom="customrules.dat" strength="primary"/>
</types> </types>
<fields> <fields>

View File

@ -20,9 +20,9 @@
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="nametext" class="solr.TextField"> <fieldType name="nametext" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/> <analyzer class="org.apache.lucene.analysis.standard.StandardAnalyzer"/>
</fieldtype> </fieldType>
</types> </types>
<fields> <fields>

View File

@ -31,7 +31,7 @@
<!-- field type definitions... note that the "name" attribute is <!-- field type definitions... note that the "name" attribute is
just a label to be used by field definitions. The "class" just a label to be used by field definitions. The "class"
attribute and any other attributes determine the real type and attribute and any other attributes determine the real type and
behavior of the fieldtype. behavior of the fieldType.
--> -->
<!-- <!--
@ -58,40 +58,40 @@
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/> <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/>
<!-- Field type demonstrating an Analyzer failure --> <!-- Field type demonstrating an Analyzer failure -->
<fieldtype name="failtype1" class="solr.TextField"> <fieldType name="failtype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Demonstrating ignoreCaseChange --> <!-- Demonstrating ignoreCaseChange -->
<fieldtype name="wdf_nocase" class="solr.TextField"> <fieldType name="wdf_nocase" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- HighlitText optimizes storage for (long) columns which will be highlit --> <!-- HighlitText optimizes storage for (long) columns which will be highlit -->
<fieldtype name="highlittext" class="solr.TextField" compressThreshold="345" /> <fieldType name="highlittext" class="solr.TextField" compressThreshold="345" />
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" sortMissingLast="true"/> <fieldType name="date" class="solr.TrieDateField" sortMissingLast="true"/>
<!-- solr.TextField allows the specification of custom <!-- solr.TextField allows the specification of custom
text analyzers specified as a tokenizer and a list text analyzers specified as a tokenizer and a list
of token filters. of token filters.
--> -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
@ -99,68 +99,68 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="nametext" class="solr.TextField"> <fieldType name="nametext" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/> <analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/>
</fieldtype> </fieldType>
<fieldtype name="teststop" class="solr.TextField"> <fieldType name="teststop" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.LowerCaseTokenizerFactory"/> <tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtypes in this section isolate tokenizers and tokenfilters for testing --> <!-- fieldTypes in this section isolate tokenizers and tokenfilters for testing -->
<fieldtype name="lowertok" class="solr.TextField"> <fieldType name="lowertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="keywordtok" class="solr.TextField"> <fieldType name="keywordtok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtok" class="solr.TextField"> <fieldType name="standardtok" class="solr.TextField">
<analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="lettertok" class="solr.TextField"> <fieldType name="lettertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="whitetok" class="solr.TextField"> <fieldType name="whitetok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLstandardtok" class="solr.TextField"> <fieldType name="HTMLstandardtok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLwhitetok" class="solr.TextField"> <fieldType name="HTMLwhitetok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtokfilt" class="solr.TextField"> <fieldType name="standardtokfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardfilt" class="solr.TextField"> <fieldType name="standardfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lowerfilt" class="solr.TextField"> <fieldType name="lowerfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="patternreplacefilt" class="solr.TextField"> <fieldType name="patternreplacefilt" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
<filter class="solr.PatternReplaceFilterFactory" <filter class="solr.PatternReplaceFilterFactory"
@ -170,52 +170,52 @@
<analyzer type="query"> <analyzer type="query">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="porterfilt" class="solr.TextField"> <fieldType name="porterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtype name="snowballfilt" class="solr.TextField"> <!-- fieldType name="snowballfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SnowballPorterFilterFactory"/> <filter class="solr.SnowballPorterFilterFactory"/>
</analyzer> </analyzer>
</fieldtype --> </fieldType -->
<fieldtype name="engporterfilt" class="solr.TextField"> <fieldType name="engporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custengporterfilt" class="solr.TextField"> <fieldType name="custengporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/> <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="stopfilt" class="solr.TextField"> <fieldType name="stopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custstopfilt" class="solr.TextField"> <fieldType name="custstopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lengthfilt" class="solr.TextField"> <fieldType name="lengthfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="2" max="5"/> <filter class="solr.LengthFilterFactory" min="2" max="5"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -230,10 +230,10 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- more flexible in matching skus, but more chance of a false match --> <!-- more flexible in matching skus, but more chance of a false match -->
<fieldtype name="skutype1" class="solr.TextField"> <fieldType name="skutype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -244,10 +244,10 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="skutype2" class="solr.TextField"> <fieldType name="skutype2" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -258,20 +258,20 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="syn" class="solr.TextField"> <fieldType name="syn" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed <!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed
synonyms "better" synonyms "better"
--> -->
<fieldtype name="dedup" class="solr.TextField"> <fieldType name="dedup" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" <filter class="solr.SynonymFilterFactory"
@ -279,17 +279,17 @@
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory" /> <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="unstored" class="solr.StrField" indexed="true" stored="false"/> <fieldType name="unstored" class="solr.StrField" indexed="true" stored="false"/>
<fieldtype name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>

View File

@ -20,12 +20,12 @@
<types> <types>
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldType class="org.apache.solr.schema.SortableBinaryField" name="sortable_binary"/> <fieldType class="org.apache.solr.schema.SortableBinaryField" name="sortable_binary"/>
</types> </types>
<fields> <fields>

View File

@ -31,7 +31,7 @@
<!-- field type definitions... note that the "name" attribute is <!-- field type definitions... note that the "name" attribute is
just a label to be used by field definitions. The "class" just a label to be used by field definitions. The "class"
attribute and any other attributes determine the real type and attribute and any other attributes determine the real type and
behavior of the fieldtype. behavior of the fieldType.
--> -->
<!-- <!--

View File

@ -23,8 +23,8 @@
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
</types> </types>
<fields> <fields>

View File

@ -30,19 +30,19 @@
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="date" class="solr.TrieDateField" precisionStep="0"/> <fieldType name="date" class="solr.TrieDateField" precisionStep="0"/>
<fieldtype name="tdate" class="solr.TrieDateField" precisionStep="6"/> <fieldType name="tdate" class="solr.TrieDateField" precisionStep="6"/>
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldtype name="int_ml" class="solr.TrieIntField" precisionStep="0" sortMissingLast="true"/> <fieldType name="int_ml" class="solr.TrieIntField" precisionStep="0" sortMissingLast="true"/>
<fieldtype name="int_mf" class="solr.TrieIntField" precisionStep="0" sortMissingFirst="true"/> <fieldType name="int_mf" class="solr.TrieIntField" precisionStep="0" sortMissingFirst="true"/>
<fieldType name="long_ml" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0" sortMissingLast="true"/> <fieldType name="long_ml" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0" sortMissingLast="true"/>
<fieldType name="long_mf" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0" sortMissingFirst="true"/> <fieldType name="long_mf" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0" sortMissingFirst="true"/>
<fieldtype name="string_ml" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string_ml" class="solr.StrField" sortMissingLast="true"/>
<fieldtype name="string_mf" class="solr.StrField" sortMissingFirst="true"/> <fieldType name="string_mf" class="solr.StrField" sortMissingFirst="true"/>
</types> </types>
<fields> <fields>

View File

@ -31,7 +31,7 @@
<!-- field type definitions... note that the "name" attribute is <!-- field type definitions... note that the "name" attribute is
just a label to be used by field definitions. The "class" just a label to be used by field definitions. The "class"
attribute and any other attributes determine the real type and attribute and any other attributes determine the real type and
behavior of the fieldtype. behavior of the fieldType.
--> -->
<!-- numeric field types that store and index the text <!-- numeric field types that store and index the text
@ -46,10 +46,10 @@
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="boolean" class="solr.BoolField" /> <fieldType name="boolean" class="solr.BoolField" />
<fieldtype name="string" class="solr.StrField" /> <fieldType name="string" class="solr.StrField" />
<fieldType name="uuid" class="solr.UUIDField" /> <fieldType name="uuid" class="solr.UUIDField" />

View File

@ -23,7 +23,7 @@
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
</types> </types>
<fields> <fields>

View File

@ -24,8 +24,8 @@
<fieldType name="float" class="solr.TrieFloatField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="float" class="solr.TrieFloatField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="double" class="solr.TrieDoubleField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="string" class="solr.StrField" /> <fieldType name="string" class="solr.StrField" />
</types> </types>
<fields> <fields>

View File

@ -26,10 +26,10 @@
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="boolean" class="solr.BoolField" /> <fieldType name="boolean" class="solr.BoolField" />
<fieldtype name="string" class="solr.StrField" /> <fieldType name="string" class="solr.StrField" />
<fieldType name="uuid" class="solr.UUIDField" /> <fieldType name="uuid" class="solr.UUIDField" />

View File

@ -26,12 +26,12 @@
<uniqueKey>id</uniqueKey> <uniqueKey>id</uniqueKey>
<types> <types>
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- note: you cannot change the order/existing values in enum without reindexing. <!-- note: you cannot change the order/existing values in enum without reindexing.
but you can always add new values to the end. --> but you can always add new values to the end. -->
<fieldType name="severityType" class="solr.EnumField" enumsConfig="enumsConfig.xml" enumName="severity"/> <fieldType name="severityType" class="solr.EnumField" enumsConfig="enumsConfig.xml" enumName="severity"/>

View File

@ -20,12 +20,12 @@
<types> <types>
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldType class="org.apache.solr.schema.WrappedIntField" name="wrapped_int"/> <fieldType class="org.apache.solr.schema.WrappedIntField" name="wrapped_int"/>
</types> </types>
<fields> <fields>

View File

@ -17,7 +17,7 @@
<schema name="test" version="1.0"> <schema name="test" version="1.0">
<types> <types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true" multiValued="false"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true" multiValued="false"/>
<fieldType name="text" class="solr.TextField" multiValued="false"> <fieldType name="text" class="solr.TextField" multiValued="false">
<analyzer> <analyzer>
@ -221,8 +221,8 @@
<fieldType name="float" class="solr.TrieFloatField" precisionStep="4" omitNorms="true" positionIncrementGap="0"/> <fieldType name="float" class="solr.TrieFloatField" precisionStep="4" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="long" class="solr.TrieLongField" precisionStep="4" omitNorms="true" positionIncrementGap="0"/> <fieldType name="long" class="solr.TrieLongField" precisionStep="4" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="double" class="solr.TrieDoubleField" precisionStep="4" omitNorms="true" positionIncrementGap="0"/> <fieldType name="double" class="solr.TrieDoubleField" precisionStep="4" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldtype name="date" class="solr.TrieDateField" precisionStep="0"/> <fieldType name="date" class="solr.TrieDateField" precisionStep="0"/>
</types> </types>
<fields> <fields>

View File

@ -19,7 +19,7 @@
<schema name="id-and-version-fields-only" version="1.5"> <schema name="id-and-version-fields-only" version="1.5">
<types> <types>
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/> <fieldType name="long" class="solr.TrieLongField" precisionStep="0" positionIncrementGap="0"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
</types> </types>
<fields> <fields>
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="true"/> <field name="id" type="string" indexed="true" stored="true" multiValued="false" required="true"/>

View File

@ -17,9 +17,9 @@
--> -->
<schema name="luceneMatchVersionTest" version="1.1"> <schema name="luceneMatchVersionTest" version="1.1">
<types> <types>
<fieldtype name="long" class="solr.TrieLongField"/> <fieldType name="long" class="solr.TrieLongField"/>
<fieldtype name="string" class="solr.StrField"/> <fieldType name="string" class="solr.StrField"/>
<fieldtype name="text40" class="solr.TextField"> <fieldType name="text40" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory" luceneMatchVersion="LUCENE_40"/> <tokenizer class="solr.StandardTokenizerFactory" luceneMatchVersion="LUCENE_40"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
@ -27,8 +27,8 @@
<filter class="solr.StopFilterFactory" luceneMatchVersion="5.0"/> <filter class="solr.StopFilterFactory" luceneMatchVersion="5.0"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="textDefault" class="solr.TextField"> <fieldType name="textDefault" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
@ -36,13 +36,13 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="textTurkishAnalyzer40" class="solr.TextField"> <fieldType name="textTurkishAnalyzer40" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.tr.TurkishAnalyzer" luceneMatchVersion="LUCENE_4_0"/> <analyzer class="org.apache.lucene.analysis.tr.TurkishAnalyzer" luceneMatchVersion="LUCENE_4_0"/>
</fieldtype> </fieldType>
<fieldtype name="textTurkishAnalyzerDefault" class="solr.TextField"> <fieldType name="textTurkishAnalyzerDefault" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.tr.TurkishAnalyzer"/> <analyzer class="org.apache.lucene.analysis.tr.TurkishAnalyzer"/>
</fieldtype> </fieldType>
</types> </types>
<fields> <fields>
<field name="id" type="string" indexed="true" stored="true"/> <field name="id" type="string" indexed="true" stored="true"/>

View File

@ -24,13 +24,13 @@
<schema name="test" version="1.0"> <schema name="test" version="1.0">
<types> <types>
<fieldType name="string" class="solr.StrField"/> <fieldType name="string" class="solr.StrField"/>
<fieldtype name="int" class="solr.TrieIntField" precisionStep="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0"/>
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>

View File

@ -27,7 +27,7 @@
<schema name="test" version="1.0"> <schema name="test" version="1.0">
<types> <types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" sortMissingLast="false" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" sortMissingLast="false" omitNorms="true" positionIncrementGap="0"/>
<fieldType name="float" class="solr.TrieFloatField" precisionStep="0" sortMissingLast="false" omitNorms="true" positionIncrementGap="0"/> <fieldType name="float" class="solr.TrieFloatField" precisionStep="0" sortMissingLast="false" omitNorms="true" positionIncrementGap="0"/>

View File

@ -23,14 +23,14 @@
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<!-- basic text field --> <!-- basic text field -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="phrase_suggest" class="solr.TextField"> <fieldType name="phrase_suggest" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.KeywordTokenizerFactory"/> <tokenizer class="solr.KeywordTokenizerFactory"/>
<filter class="solr.PatternReplaceFilterFactory" <filter class="solr.PatternReplaceFilterFactory"
@ -39,15 +39,15 @@
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.TrimFilterFactory"/> <filter class="solr.TrimFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="ja_suggest" class="solr.TextField"> <fieldType name="ja_suggest" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.JapaneseTokenizerFactory" mode="normal"/> <tokenizer class="solr.JapaneseTokenizerFactory" mode="normal"/>
<filter class="solr.CJKWidthFilterFactory"/> <filter class="solr.CJKWidthFilterFactory"/>
<filter class="solr.JapaneseReadingFormFilterFactory" useRomaji="true"/> <filter class="solr.JapaneseReadingFormFilterFactory" useRomaji="true"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>
<fields> <fields>

View File

@ -23,20 +23,20 @@
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<!-- basic text field: no offsets! --> <!-- basic text field: no offsets! -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- text field with offsets --> <!-- text field with offsets -->
<fieldtype name="text_offsets" class="solr.TextField" storeOffsetsWithPositions="true"> <fieldType name="text_offsets" class="solr.TextField" storeOffsetsWithPositions="true">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>
<fields> <fields>

View File

@ -18,7 +18,7 @@
<schema name="tiny" version="1.1"> <schema name="tiny" version="1.1">
<types> <types>
<fieldtype name="preanalyzed" class="solr.PreAnalyzedField" parserImpl="json"/> <fieldType name="preanalyzed" class="solr.PreAnalyzedField" parserImpl="json"/>
<fieldType name="string" class="solr.StrField"/> <fieldType name="string" class="solr.StrField"/>
<fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="long" class="solr.TrieLongField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
</types> </types>

View File

@ -29,7 +29,7 @@
<types> <types>
<fieldType name="integer" class="solr.TrieIntField" precisionStep="0"/> <fieldType name="integer" class="solr.TrieIntField" precisionStep="0"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
</types> </types>

View File

@ -29,7 +29,7 @@
<types> <types>
<fieldType name="integer" class="solr.TrieIntField" precisionStep="0"/> <fieldType name="integer" class="solr.TrieIntField" precisionStep="0"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
</types> </types>

View File

@ -31,7 +31,7 @@
<!-- field type definitions... note that the "name" attribute is <!-- field type definitions... note that the "name" attribute is
just a label to be used by field definitions. The "class" just a label to be used by field definitions. The "class"
attribute and any other attributes determine the real type and attribute and any other attributes determine the real type and
behavior of the fieldtype. behavior of the fieldType.
--> -->
<!-- <!--
@ -58,31 +58,31 @@
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/> <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/>
<!-- Field type demonstrating an Analyzer failure --> <!-- Field type demonstrating an Analyzer failure -->
<fieldtype name="failtype1" class="solr.TextField"> <fieldType name="failtype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- HighlitText optimizes storage for (long) columns which will be highlit --> <!-- HighlitText optimizes storage for (long) columns which will be highlit -->
<fieldtype name="highlittext" class="solr.TextField" compressThreshold="345" /> <fieldType name="highlittext" class="solr.TextField" compressThreshold="345" />
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" sortMissingLast="true"/> <fieldType name="date" class="solr.TrieDateField" sortMissingLast="true"/>
<!-- solr.TextField allows the specification of custom <!-- solr.TextField allows the specification of custom
text analyzers specified as a tokenizer and a list text analyzers specified as a tokenizer and a list
of token filters. of token filters.
--> -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
@ -90,68 +90,68 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="nametext" class="solr.TextField"> <fieldType name="nametext" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/> <analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/>
</fieldtype> </fieldType>
<fieldtype name="teststop" class="solr.TextField"> <fieldType name="teststop" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.LowerCaseTokenizerFactory"/> <tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtypes in this section isolate tokenizers and tokenfilters for testing --> <!-- fieldTypes in this section isolate tokenizers and tokenfilters for testing -->
<fieldtype name="lowertok" class="solr.TextField"> <fieldType name="lowertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="keywordtok" class="solr.TextField"> <fieldType name="keywordtok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtok" class="solr.TextField"> <fieldType name="standardtok" class="solr.TextField">
<analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="lettertok" class="solr.TextField"> <fieldType name="lettertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="whitetok" class="solr.TextField"> <fieldType name="whitetok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLstandardtok" class="solr.TextField"> <fieldType name="HTMLstandardtok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLwhitetok" class="solr.TextField"> <fieldType name="HTMLwhitetok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtokfilt" class="solr.TextField"> <fieldType name="standardtokfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardfilt" class="solr.TextField"> <fieldType name="standardfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lowerfilt" class="solr.TextField"> <fieldType name="lowerfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="patternreplacefilt" class="solr.TextField"> <fieldType name="patternreplacefilt" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
<filter class="solr.PatternReplaceFilterFactory" <filter class="solr.PatternReplaceFilterFactory"
@ -161,52 +161,52 @@
<analyzer type="query"> <analyzer type="query">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="porterfilt" class="solr.TextField"> <fieldType name="porterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtype name="snowballfilt" class="solr.TextField"> <!-- fieldType name="snowballfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SnowballPorterFilterFactory"/> <filter class="solr.SnowballPorterFilterFactory"/>
</analyzer> </analyzer>
</fieldtype --> </fieldType -->
<fieldtype name="engporterfilt" class="solr.TextField"> <fieldType name="engporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custengporterfilt" class="solr.TextField"> <fieldType name="custengporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/> <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="stopfilt" class="solr.TextField"> <fieldType name="stopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custstopfilt" class="solr.TextField"> <fieldType name="custstopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lengthfilt" class="solr.TextField"> <fieldType name="lengthfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="2" max="5"/> <filter class="solr.LengthFilterFactory" min="2" max="5"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -221,10 +221,10 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- more flexible in matching skus, but more chance of a false match --> <!-- more flexible in matching skus, but more chance of a false match -->
<fieldtype name="skutype1" class="solr.TextField"> <fieldType name="skutype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -235,10 +235,10 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="skutype2" class="solr.TextField"> <fieldType name="skutype2" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -249,20 +249,20 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="syn" class="solr.TextField"> <fieldType name="syn" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed <!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed
synonyms "better" synonyms "better"
--> -->
<fieldtype name="dedup" class="solr.TextField"> <fieldType name="dedup" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" <filter class="solr.SynonymFilterFactory"
@ -270,17 +270,17 @@
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory" /> <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="unstored" class="solr.StrField" indexed="true" stored="false"/> <fieldType name="unstored" class="solr.StrField" indexed="true" stored="false"/>
<fieldtype name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>

View File

@ -17,21 +17,21 @@
--> -->
<schema name="test-class-name-shortening-on-serialization" version="1.5"> <schema name="test-class-name-shortening-on-serialization" version="1.5">
<types> <types>
<fieldtype name="explicitLuceneMatchVersions" class="org.apache.solr.schema.TextField"> <fieldType name="explicitLuceneMatchVersions" class="org.apache.solr.schema.TextField">
<analyzer> <analyzer>
<charFilter class="org.apache.solr.analysis.MockCharFilterFactory" luceneMatchVersion="LUCENE_40" remainder="0"/> <charFilter class="org.apache.solr.analysis.MockCharFilterFactory" luceneMatchVersion="LUCENE_40" remainder="0"/>
<tokenizer class="org.apache.solr.analysis.MockTokenizerFactory" luceneMatchVersion="LUCENE_4_0" /> <tokenizer class="org.apache.solr.analysis.MockTokenizerFactory" luceneMatchVersion="LUCENE_4_0" />
<filter class="org.apache.solr.analysis.MockTokenFilterFactory" luceneMatchVersion="4.0" stopset="empty"/> <filter class="org.apache.solr.analysis.MockTokenFilterFactory" luceneMatchVersion="4.0" stopset="empty"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="noLuceneMatchVersions" class="org.apache.solr.schema.TextField"> <fieldType name="noLuceneMatchVersions" class="org.apache.solr.schema.TextField">
<analyzer> <analyzer>
<charFilter class="org.apache.solr.analysis.MockCharFilterFactory" remainder="0"/> <charFilter class="org.apache.solr.analysis.MockCharFilterFactory" remainder="0"/>
<tokenizer class="org.apache.solr.analysis.MockTokenizerFactory" /> <tokenizer class="org.apache.solr.analysis.MockTokenizerFactory" />
<filter class="org.apache.solr.analysis.MockTokenFilterFactory" stopset="empty"/> <filter class="org.apache.solr.analysis.MockTokenFilterFactory" stopset="empty"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
</types> </types>
<fields> <fields>
<field name="id" type="string" indexed="true" stored="true" multiValued="false" required="true"/> <field name="id" type="string" indexed="true" stored="true" multiValued="false" required="true"/>

View File

@ -42,43 +42,43 @@
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/> <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" positionIncrementGap="0"/>
<!-- Field type demonstrating an Analyzer failure --> <!-- Field type demonstrating an Analyzer failure -->
<fieldtype name="failtype1" class="solr.TextField"> <fieldType name="failtype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Demonstrating ignoreCaseChange --> <!-- Demonstrating ignoreCaseChange -->
<fieldtype name="wdf_nocase" class="solr.TextField"> <fieldType name="wdf_nocase" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="wdf_preserve" class="solr.TextField"> <fieldType name="wdf_preserve" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- HighlitText optimizes storage for (long) columns which will be highlit --> <!-- HighlitText optimizes storage for (long) columns which will be highlit -->
<fieldtype name="highlittext" class="solr.TextField"/> <fieldType name="highlittext" class="solr.TextField"/>
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" sortMissingLast="true"/> <fieldType name="date" class="solr.TrieDateField" sortMissingLast="true"/>
<fieldtype name="tdate" class="solr.TrieDateField" sortMissingLast="true" precisionStep="6"/> <fieldType name="tdate" class="solr.TrieDateField" sortMissingLast="true" precisionStep="6"/>
<fieldType name="text" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true" > <fieldType name="text" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true" >
<analyzer type="index"> <analyzer type="index">
@ -167,65 +167,65 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="nametext" class="solr.TextField"> <fieldType name="nametext" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/> <analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/>
</fieldtype> </fieldType>
<fieldtype name="teststop" class="solr.TextField"> <fieldType name="teststop" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.LowerCaseTokenizerFactory"/> <tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtypes in this section isolate tokenizers and tokenfilters for testing --> <!-- fieldTypes in this section isolate tokenizers and tokenfilters for testing -->
<fieldtype name="lowertok" class="solr.TextField"> <fieldType name="lowertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="keywordtok" class="solr.TextField"> <fieldType name="keywordtok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtok" class="solr.TextField"> <fieldType name="standardtok" class="solr.TextField">
<analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="lettertok" class="solr.TextField"> <fieldType name="lettertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="whitetok" class="solr.TextField"> <fieldType name="whitetok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLstandardtok" class="solr.TextField"> <fieldType name="HTMLstandardtok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLwhitetok" class="solr.TextField"> <fieldType name="HTMLwhitetok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtokfilt" class="solr.TextField"> <fieldType name="standardtokfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardfilt" class="solr.TextField"> <fieldType name="standardfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lowerfilt" class="solr.TextField"> <fieldType name="lowerfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="patternreplacefilt" class="solr.TextField"> <fieldType name="patternreplacefilt" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
<filter class="solr.PatternReplaceFilterFactory" <filter class="solr.PatternReplaceFilterFactory"
@ -235,52 +235,52 @@
<analyzer type="query"> <analyzer type="query">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="porterfilt" class="solr.TextField"> <fieldType name="porterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="engporterfilt" class="solr.TextField"> <fieldType name="engporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custengporterfilt" class="solr.TextField"> <fieldType name="custengporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/> <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="stopfilt" class="solr.TextField"> <fieldType name="stopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custstopfilt" class="solr.TextField"> <fieldType name="custstopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lengthfilt" class="solr.TextField"> <fieldType name="lengthfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="2" max="5"/> <filter class="solr.LengthFilterFactory" min="2" max="5"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="limitfilt" class="solr.TextField"> <fieldType name="limitfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="100" /> <filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="100" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -295,9 +295,9 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="numericsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="numericsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -312,9 +312,9 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="protectedsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="protectedsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -324,11 +324,11 @@
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- more flexible in matching skus, but more chance of a false match --> <!-- more flexible in matching skus, but more chance of a false match -->
<fieldtype name="skutype1" class="solr.TextField"> <fieldType name="skutype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -339,10 +339,10 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="skutype2" class="solr.TextField"> <fieldType name="skutype2" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -353,15 +353,15 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="syn" class="solr.TextField"> <fieldType name="syn" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- a text field with the stop filter only on the query analyzer <!-- a text field with the stop filter only on the query analyzer
--> -->
@ -392,7 +392,7 @@
<!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed <!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed
synonyms "better" synonyms "better"
--> -->
<fieldtype name="dedup" class="solr.TextField"> <fieldType name="dedup" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" <filter class="solr.SynonymFilterFactory"
@ -400,17 +400,17 @@
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory" /> <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="unstored" class="solr.StrField" indexed="true" stored="false"/> <fieldType name="unstored" class="solr.StrField" indexed="true" stored="false"/>
<fieldtype name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldType name="uuid" class="solr.UUIDField" /> <fieldType name="uuid" class="solr.UUIDField" />
<fieldType name="ignored" class="solr.StrField" indexed="false" stored="false" /> <fieldType name="ignored" class="solr.StrField" indexed="false" stored="false" />
@ -421,29 +421,29 @@
<!-- Poly field --> <!-- Poly field -->
<fieldType name="xy" class="solr.PointType" dimension="2" subFieldType="double"/> <fieldType name="xy" class="solr.PointType" dimension="2" subFieldType="double"/>
<fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="*_d"/> <fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="*_d"/>
<fieldtype name="geohash" class="solr.GeoHashField"/> <fieldType name="geohash" class="solr.GeoHashField"/>
<fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/> <fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. --> <!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->
<fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/> <fieldType name="location" class="solr.LatLonType" subFieldSuffix="_coordinate"/>
<!-- Field type where english stopwords are managed by the REST API --> <!-- Field type where english stopwords are managed by the REST API -->
<fieldtype name="managed_en" class="solr.TextField"> <fieldType name="managed_en" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.ManagedStopFilterFactory" managed="english" /> <filter class="solr.ManagedStopFilterFactory" managed="english" />
<filter class="solr.ManagedSynonymFilterFactory" managed="english" /> <filter class="solr.ManagedSynonymFilterFactory" managed="english" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Field type where german stopwords are managed by the REST API --> <!-- Field type where german stopwords are managed by the REST API -->
<fieldtype name="managed_de" class="solr.TextField"> <fieldType name="managed_de" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.ManagedStopFilterFactory" managed="german" /> <filter class="solr.ManagedStopFilterFactory" managed="german" />
<filter class="solr.ManagedSynonymFilterFactory" managed="german" /> <filter class="solr.ManagedSynonymFilterFactory" managed="german" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>

View File

@ -25,18 +25,18 @@
<types> <types>
<fieldtype name="long" class="solr.TrieLongField" /> <fieldType name="long" class="solr.TrieLongField" />
<fieldType name="integer" class="solr.TrieIntField" precisionStep="0"/> <fieldType name="integer" class="solr.TrieIntField" precisionStep="0"/>
<fieldtype name="string" class="solr.StrField" /> <fieldType name="string" class="solr.StrField" />
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="srev" class="solr.TextField"> <fieldType name="srev" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -49,8 +49,8 @@
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="rev" class="solr.TextField"> <fieldType name="rev" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -64,7 +64,7 @@
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>

View File

@ -24,23 +24,23 @@
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<!-- basic text field: no offsets --> <!-- basic text field: no offsets -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory" pattern="whitespace"/> <tokenizer class="solr.MockTokenizerFactory" pattern="whitespace"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.ASCIIFoldingFilterFactory"/> <filter class="solr.ASCIIFoldingFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- basic text field: except it will use the keyword analyzer --> <!-- basic text field: except it will use the keyword analyzer -->
<fieldtype name="text-keyword" class="solr.TextField"> <fieldType name="text-keyword" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- basic text field: except it will use the keyword analyzer --> <!-- basic text field: except it will use the keyword analyzer -->
<fieldtype name="text-query" class="solr.TextField"> <fieldType name="text-query" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory" pattern="whitespace"/> <tokenizer class="solr.MockTokenizerFactory" pattern="whitespace"/>
</analyzer> </analyzer>
@ -49,7 +49,7 @@
<tokenizer class="solr.MockTokenizerFactory" pattern="whitespace"/> <tokenizer class="solr.MockTokenizerFactory" pattern="whitespace"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>
<fields> <fields>

View File

@ -26,10 +26,10 @@
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="date" class="solr.TrieDateField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
<fieldtype name="boolean" class="solr.BoolField" /> <fieldType name="boolean" class="solr.BoolField" />
<fieldtype name="string" class="solr.StrField" /> <fieldType name="string" class="solr.StrField" />
<fieldType name="uuid" class="solr.UUIDField" /> <fieldType name="uuid" class="solr.UUIDField" />

View File

@ -194,85 +194,85 @@ NOTE: Tests expect every field in this schema to be sortable.
<types> <types>
<fieldtype name="str" class="solr.StrField" stored="true" indexed="true" /> <fieldType name="str" class="solr.StrField" stored="true" indexed="true" />
<fieldtype name="str_last" class="solr.StrField" stored="true" indexed="true" sortMissingLast="true"/> <fieldType name="str_last" class="solr.StrField" stored="true" indexed="true" sortMissingLast="true"/>
<fieldtype name="str_first" class="solr.StrField" stored="true" indexed="true" sortMissingFirst="true"/> <fieldType name="str_first" class="solr.StrField" stored="true" indexed="true" sortMissingFirst="true"/>
<fieldtype name="str_dv" class="solr.StrField" stored="true" indexed="false" docValues="true"/> <fieldType name="str_dv" class="solr.StrField" stored="true" indexed="false" docValues="true"/>
<fieldtype name="str_dv_last" class="solr.StrField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/> <fieldType name="str_dv_last" class="solr.StrField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/>
<fieldtype name="str_dv_first" class="solr.StrField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/> <fieldType name="str_dv_first" class="solr.StrField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/>
<!-- note: all 'binary' fields have docvalues, because this fieldtype doesnt support indexing --> <!-- note: all 'binary' fields have docvalues, because this fieldType doesnt support indexing -->
<fieldtype name="bin" class="solr.SortableBinaryField" stored="true" indexed="true" docValues="true"/> <fieldType name="bin" class="solr.SortableBinaryField" stored="true" indexed="true" docValues="true"/>
<fieldtype name="bin_last" class="solr.SortableBinaryField" stored="true" indexed="true" docValues="true" sortMissingLast="true"/> <fieldType name="bin_last" class="solr.SortableBinaryField" stored="true" indexed="true" docValues="true" sortMissingLast="true"/>
<fieldtype name="bin_first" class="solr.SortableBinaryField" stored="true" indexed="true" docValues="true" sortMissingFirst="true"/> <fieldType name="bin_first" class="solr.SortableBinaryField" stored="true" indexed="true" docValues="true" sortMissingFirst="true"/>
<fieldtype name="bin_dv" class="solr.SortableBinaryField" stored="true" indexed="false" docValues="true"/> <fieldType name="bin_dv" class="solr.SortableBinaryField" stored="true" indexed="false" docValues="true"/>
<fieldtype name="bin_dv_last" class="solr.SortableBinaryField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/> <fieldType name="bin_dv_last" class="solr.SortableBinaryField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/>
<fieldtype name="bin_dv_first" class="solr.SortableBinaryField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/> <fieldType name="bin_dv_first" class="solr.SortableBinaryField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/>
<fieldtype name="int" class="solr.TrieIntField" stored="true" indexed="true" /> <fieldType name="int" class="solr.TrieIntField" stored="true" indexed="true" />
<fieldtype name="int_last" class="solr.TrieIntField" stored="true" indexed="true" sortMissingLast="true"/> <fieldType name="int_last" class="solr.TrieIntField" stored="true" indexed="true" sortMissingLast="true"/>
<fieldtype name="int_first" class="solr.TrieIntField" stored="true" indexed="true" sortMissingFirst="true"/> <fieldType name="int_first" class="solr.TrieIntField" stored="true" indexed="true" sortMissingFirst="true"/>
<fieldtype name="int_dv" class="solr.TrieIntField" stored="true" indexed="false" docValues="true"/> <fieldType name="int_dv" class="solr.TrieIntField" stored="true" indexed="false" docValues="true"/>
<fieldtype name="int_dv_last" class="solr.TrieIntField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/> <fieldType name="int_dv_last" class="solr.TrieIntField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/>
<fieldtype name="int_dv_first" class="solr.TrieIntField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/> <fieldType name="int_dv_first" class="solr.TrieIntField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/>
<fieldtype name="long" class="solr.TrieLongField" stored="true" indexed="true" /> <fieldType name="long" class="solr.TrieLongField" stored="true" indexed="true" />
<fieldtype name="long_last" class="solr.TrieLongField" stored="true" indexed="true" sortMissingLast="true"/> <fieldType name="long_last" class="solr.TrieLongField" stored="true" indexed="true" sortMissingLast="true"/>
<fieldtype name="long_first" class="solr.TrieLongField" stored="true" indexed="true" sortMissingFirst="true"/> <fieldType name="long_first" class="solr.TrieLongField" stored="true" indexed="true" sortMissingFirst="true"/>
<fieldtype name="long_dv" class="solr.TrieLongField" stored="true" indexed="false" docValues="true"/> <fieldType name="long_dv" class="solr.TrieLongField" stored="true" indexed="false" docValues="true"/>
<fieldtype name="long_dv_last" class="solr.TrieLongField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/> <fieldType name="long_dv_last" class="solr.TrieLongField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/>
<fieldtype name="long_dv_first" class="solr.TrieLongField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/> <fieldType name="long_dv_first" class="solr.TrieLongField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/>
<fieldtype name="float" class="solr.TrieFloatField" stored="true" indexed="true" /> <fieldType name="float" class="solr.TrieFloatField" stored="true" indexed="true" />
<fieldtype name="float_last" class="solr.TrieFloatField" stored="true" indexed="true" sortMissingLast="true"/> <fieldType name="float_last" class="solr.TrieFloatField" stored="true" indexed="true" sortMissingLast="true"/>
<fieldtype name="float_first" class="solr.TrieFloatField" stored="true" indexed="true" sortMissingFirst="true"/> <fieldType name="float_first" class="solr.TrieFloatField" stored="true" indexed="true" sortMissingFirst="true"/>
<fieldtype name="float_dv" class="solr.TrieFloatField" stored="true" indexed="false" docValues="true"/> <fieldType name="float_dv" class="solr.TrieFloatField" stored="true" indexed="false" docValues="true"/>
<fieldtype name="float_dv_last" class="solr.TrieFloatField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/> <fieldType name="float_dv_last" class="solr.TrieFloatField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/>
<fieldtype name="float_dv_first" class="solr.TrieFloatField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/> <fieldType name="float_dv_first" class="solr.TrieFloatField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/>
<fieldtype name="double" class="solr.TrieDoubleField" stored="true" indexed="true" /> <fieldType name="double" class="solr.TrieDoubleField" stored="true" indexed="true" />
<fieldtype name="double_last" class="solr.TrieDoubleField" stored="true" indexed="true" sortMissingLast="true"/> <fieldType name="double_last" class="solr.TrieDoubleField" stored="true" indexed="true" sortMissingLast="true"/>
<fieldtype name="double_first" class="solr.TrieDoubleField" stored="true" indexed="true" sortMissingFirst="true"/> <fieldType name="double_first" class="solr.TrieDoubleField" stored="true" indexed="true" sortMissingFirst="true"/>
<fieldtype name="double_dv" class="solr.TrieDoubleField" stored="true" indexed="false" docValues="true"/> <fieldType name="double_dv" class="solr.TrieDoubleField" stored="true" indexed="false" docValues="true"/>
<fieldtype name="double_dv_last" class="solr.TrieDoubleField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/> <fieldType name="double_dv_last" class="solr.TrieDoubleField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/>
<fieldtype name="double_dv_first" class="solr.TrieDoubleField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/> <fieldType name="double_dv_first" class="solr.TrieDoubleField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/>
<fieldtype name="date" class="solr.TrieDateField" stored="true" indexed="true" /> <fieldType name="date" class="solr.TrieDateField" stored="true" indexed="true" />
<fieldtype name="date_last" class="solr.TrieDateField" stored="true" indexed="true" sortMissingLast="true"/> <fieldType name="date_last" class="solr.TrieDateField" stored="true" indexed="true" sortMissingLast="true"/>
<fieldtype name="date_first" class="solr.TrieDateField" stored="true" indexed="true" sortMissingFirst="true"/> <fieldType name="date_first" class="solr.TrieDateField" stored="true" indexed="true" sortMissingFirst="true"/>
<fieldtype name="date_dv" class="solr.TrieDateField" stored="true" indexed="false" docValues="true"/> <fieldType name="date_dv" class="solr.TrieDateField" stored="true" indexed="false" docValues="true"/>
<fieldtype name="date_dv_last" class="solr.TrieDateField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/> <fieldType name="date_dv_last" class="solr.TrieDateField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/>
<fieldtype name="date_dv_first" class="solr.TrieDateField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/> <fieldType name="date_dv_first" class="solr.TrieDateField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/>
<fieldtype name="uuid" class="solr.UUIDField" stored="true" indexed="true" /> <fieldType name="uuid" class="solr.UUIDField" stored="true" indexed="true" />
<fieldtype name="uuid_last" class="solr.UUIDField" stored="true" indexed="true" sortMissingLast="true"/> <fieldType name="uuid_last" class="solr.UUIDField" stored="true" indexed="true" sortMissingLast="true"/>
<fieldtype name="uuid_first" class="solr.UUIDField" stored="true" indexed="true" sortMissingFirst="true"/> <fieldType name="uuid_first" class="solr.UUIDField" stored="true" indexed="true" sortMissingFirst="true"/>
<fieldtype name="uuid_dv" class="solr.UUIDField" stored="true" indexed="false" docValues="true"/> <fieldType name="uuid_dv" class="solr.UUIDField" stored="true" indexed="false" docValues="true"/>
<fieldtype name="uuid_dv_last" class="solr.UUIDField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/> <fieldType name="uuid_dv_last" class="solr.UUIDField" stored="true" indexed="false" docValues="true" sortMissingLast="true"/>
<fieldtype name="uuid_dv_first" class="solr.UUIDField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/> <fieldType name="uuid_dv_first" class="solr.UUIDField" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/>
<fieldtype name="currency" class="solr.CurrencyField" stored="true" indexed="true" foo="bar" providerClass="solr.MockExchangeRateProvider"/> <fieldType name="currency" class="solr.CurrencyField" stored="true" indexed="true" foo="bar" providerClass="solr.MockExchangeRateProvider"/>
<fieldtype name="currency_last" class="solr.CurrencyField" stored="true" indexed="true" foo="bar" providerClass="solr.MockExchangeRateProvider" sortMissingLast="true"/> <fieldType name="currency_last" class="solr.CurrencyField" stored="true" indexed="true" foo="bar" providerClass="solr.MockExchangeRateProvider" sortMissingLast="true"/>
<fieldtype name="currency_first" class="solr.CurrencyField" stored="true" indexed="true" foo="bar" providerClass="solr.MockExchangeRateProvider" sortMissingFirst="true"/> <fieldType name="currency_first" class="solr.CurrencyField" stored="true" indexed="true" foo="bar" providerClass="solr.MockExchangeRateProvider" sortMissingFirst="true"/>
<fieldtype name="collation_en_primary" class="solr.CollationField" language="en" strength="primary" stored="true" indexed="true" /> <fieldType name="collation_en_primary" class="solr.CollationField" language="en" strength="primary" stored="true" indexed="true" />
<fieldtype name="collation_en_primary_last" class="solr.CollationField" language="en" strength="primary" stored="true" indexed="true" sortMissingLast="true"/> <fieldType name="collation_en_primary_last" class="solr.CollationField" language="en" strength="primary" stored="true" indexed="true" sortMissingLast="true"/>
<fieldtype name="collation_en_primary_first" class="solr.CollationField" language="en" strength="primary" stored="true" indexed="true" sortMissingFirst="true"/> <fieldType name="collation_en_primary_first" class="solr.CollationField" language="en" strength="primary" stored="true" indexed="true" sortMissingFirst="true"/>
<fieldtype name="collation_en_primary_dv" class="solr.CollationField" language="en" strength="primary" stored="true" indexed="false" docValues="true"/> <fieldType name="collation_en_primary_dv" class="solr.CollationField" language="en" strength="primary" stored="true" indexed="false" docValues="true"/>
<fieldtype name="collation_en_primary_dv_last" class="solr.CollationField" language="en" strength="primary" stored="true" indexed="false" docValues="true" sortMissingLast="true"/> <fieldType name="collation_en_primary_dv_last" class="solr.CollationField" language="en" strength="primary" stored="true" indexed="false" docValues="true" sortMissingLast="true"/>
<fieldtype name="collation_en_primary_dv_first" class="solr.CollationField" language="en" strength="primary" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/> <fieldType name="collation_en_primary_dv_first" class="solr.CollationField" language="en" strength="primary" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/>
<fieldtype name="icu_collation_en_primary" class="solr.ICUCollationField" locale="en" strength="primary" stored="true" indexed="true" /> <fieldType name="icu_collation_en_primary" class="solr.ICUCollationField" locale="en" strength="primary" stored="true" indexed="true" />
<fieldtype name="icu_collation_en_primary_last" class="solr.ICUCollationField" locale="en" strength="primary" stored="true" indexed="true" sortMissingLast="true"/> <fieldType name="icu_collation_en_primary_last" class="solr.ICUCollationField" locale="en" strength="primary" stored="true" indexed="true" sortMissingLast="true"/>
<fieldtype name="icu_collation_en_primary_first" class="solr.ICUCollationField" locale="en" strength="primary" stored="true" indexed="true" sortMissingFirst="true"/> <fieldType name="icu_collation_en_primary_first" class="solr.ICUCollationField" locale="en" strength="primary" stored="true" indexed="true" sortMissingFirst="true"/>
<fieldtype name="icu_collation_en_primary_dv" class="solr.ICUCollationField" locale="en" strength="primary" stored="true" indexed="false" docValues="true"/> <fieldType name="icu_collation_en_primary_dv" class="solr.ICUCollationField" locale="en" strength="primary" stored="true" indexed="false" docValues="true"/>
<fieldtype name="icu_collation_en_primary_dv_last" class="solr.ICUCollationField" locale="en" strength="primary" stored="true" indexed="false" docValues="true" sortMissingLast="true"/> <fieldType name="icu_collation_en_primary_dv_last" class="solr.ICUCollationField" locale="en" strength="primary" stored="true" indexed="false" docValues="true" sortMissingLast="true"/>
<fieldtype name="icu_collation_en_primary_dv_first" class="solr.ICUCollationField" locale="en" strength="primary" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/> <fieldType name="icu_collation_en_primary_dv_first" class="solr.ICUCollationField" locale="en" strength="primary" stored="true" indexed="false" docValues="true" sortMissingFirst="true"/>
<!-- BoolField does not support DocValues - see SOLR-5933 --> <!-- BoolField does not support DocValues - see SOLR-5933 -->
<fieldtype name="bool" class="solr.BoolField" stored="true" indexed="true" /> <fieldType name="bool" class="solr.BoolField" stored="true" indexed="true" />
<fieldtype name="bool_last" class="solr.BoolField" stored="true" indexed="true" sortMissingLast="true"/> <fieldType name="bool_last" class="solr.BoolField" stored="true" indexed="true" sortMissingLast="true"/>
<fieldtype name="bool_first" class="solr.BoolField" stored="true" indexed="true" sortMissingFirst="true"/> <fieldType name="bool_first" class="solr.BoolField" stored="true" indexed="true" sortMissingFirst="true"/>
<fieldType name="enum" class="solr.EnumField" enumsConfig="enumsConfig.xml" enumName="severity"/> <fieldType name="enum" class="solr.EnumField" enumsConfig="enumsConfig.xml" enumName="severity"/>
<fieldType name="enum_last" class="solr.EnumField" enumsConfig="enumsConfig.xml" enumName="severity" sortMissingLast="true"/> <fieldType name="enum_last" class="solr.EnumField" enumsConfig="enumsConfig.xml" enumName="severity" sortMissingLast="true"/>

View File

@ -34,9 +34,9 @@
1.1: multiValued attribute introduced, false by default --> 1.1: multiValued attribute introduced, false by default -->
<types> <types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
@ -44,7 +44,7 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldType name="spellText" class="solr.TextField" positionIncrementGap="100"> <fieldType name="spellText" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">

View File

@ -26,10 +26,10 @@
<types> <types>
<fieldtype name="integer" class="solr.TrieIntField" precisionStep="0"/> <fieldType name="integer" class="solr.TrieIntField" precisionStep="0"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<fieldtype name="stop-one" class="solr.TextField"> <fieldType name="stop-one" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -37,8 +37,8 @@
words="stop-1.txt"/> words="stop-1.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="stop-two" class="solr.TextField"> <fieldType name="stop-two" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -46,7 +46,7 @@
words="stop-1.txt,stop-2.txt"/> words="stop-1.txt,stop-2.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>

View File

@ -27,11 +27,11 @@
<uniqueKey>id</uniqueKey> <uniqueKey>id</uniqueKey>
<types> <types>
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>
</schema> </schema>

View File

@ -31,7 +31,7 @@
<!-- field type definitions... note that the "name" attribute is <!-- field type definitions... note that the "name" attribute is
just a label to be used by field definitions. The "class" just a label to be used by field definitions. The "class"
attribute and any other attributes determine the real type and attribute and any other attributes determine the real type and
behavior of the fieldtype. behavior of the fieldType.
--> -->
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
@ -46,52 +46,52 @@
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
<!-- Field type demonstrating an Analyzer failure --> <!-- Field type demonstrating an Analyzer failure -->
<fieldtype name="failtype1" class="solr.TextField"> <fieldType name="failtype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Demonstrating ignoreCaseChange --> <!-- Demonstrating ignoreCaseChange -->
<fieldtype name="wdf_nocase" class="solr.TextField"> <fieldType name="wdf_nocase" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="wdf_preserve" class="solr.TextField"> <fieldType name="wdf_preserve" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- HighlitText optimizes storage for (long) columns which will be highlit --> <!-- HighlitText optimizes storage for (long) columns which will be highlit -->
<fieldtype name="highlittext" class="solr.TextField" compressThreshold="345" /> <fieldType name="highlittext" class="solr.TextField" compressThreshold="345" />
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" precisionStep="0"/> <fieldType name="date" class="solr.TrieDateField" precisionStep="0"/>
<fieldtype name="tdate" class="solr.TrieDateField" precisionStep="6"/> <fieldType name="tdate" class="solr.TrieDateField" precisionStep="6"/>
<fieldtype name="tdatedv" class="solr.TrieDateField" precisionStep="6" docValues="true" multiValued="true"/> <fieldType name="tdatedv" class="solr.TrieDateField" precisionStep="6" docValues="true" multiValued="true"/>
<fieldtype name="dateRange" class="solr.DateRangeField" /> <fieldType name="dateRange" class="solr.DateRangeField" />
<!-- solr.TextField allows the specification of custom <!-- solr.TextField allows the specification of custom
text analyzers specified as a tokenizer and a list text analyzers specified as a tokenizer and a list
of token filters. of token filters.
--> -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
@ -99,14 +99,14 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="nametext" class="solr.TextField"> <fieldType name="nametext" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/> <analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/>
</fieldtype> </fieldType>
<fieldtype name="teststop" class="solr.TextField"> <fieldType name="teststop" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.LowerCaseTokenizerFactory"/> <tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
@ -116,63 +116,63 @@
<tokenizer class="solr.LowerCaseTokenizerFactory"/> <tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtypes in this section isolate tokenizers and tokenfilters for testing --> <!-- fieldTypes in this section isolate tokenizers and tokenfilters for testing -->
<fieldtype name="lowertok" class="solr.TextField"> <fieldType name="lowertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="keywordtok" class="solr.TextField"> <fieldType name="keywordtok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtok" class="solr.TextField"> <fieldType name="standardtok" class="solr.TextField">
<analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="lettertok" class="solr.TextField"> <fieldType name="lettertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="whitetok" class="solr.TextField"> <fieldType name="whitetok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLstandardtok" class="solr.TextField"> <fieldType name="HTMLstandardtok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLwhitetok" class="solr.TextField"> <fieldType name="HTMLwhitetok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtokfilt" class="solr.TextField"> <fieldType name="standardtokfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardfilt" class="solr.TextField"> <fieldType name="standardfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lowerfilt" class="solr.TextField"> <fieldType name="lowerfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lowerpunctfilt" class="solr.TextField"> <fieldType name="lowerpunctfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" expand="true"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" expand="true"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="1" splitOnCaseChange="1"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="1" splitOnCaseChange="1"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="patternreplacefilt" class="solr.TextField"> <fieldType name="patternreplacefilt" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
<filter class="solr.PatternReplaceFilterFactory" <filter class="solr.PatternReplaceFilterFactory"
@ -182,55 +182,55 @@
<analyzer type="query"> <analyzer type="query">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="patterntok" class="solr.TextField"> <fieldType name="patterntok" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.PatternTokenizerFactory" pattern=","/> <tokenizer class="solr.PatternTokenizerFactory" pattern=","/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="porterfilt" class="solr.TextField"> <fieldType name="porterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtype name="snowballfilt" class="solr.TextField"> <!-- fieldType name="snowballfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SnowballPorterFilterFactory"/> <filter class="solr.SnowballPorterFilterFactory"/>
</analyzer> </analyzer>
</fieldtype --> </fieldType -->
<fieldtype name="engporterfilt" class="solr.TextField"> <fieldType name="engporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custengporterfilt" class="solr.TextField"> <fieldType name="custengporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/> <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="stopfilt" class="solr.TextField"> <fieldType name="stopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custstopfilt" class="solr.TextField"> <fieldType name="custstopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lengthfilt" class="solr.TextField"> <fieldType name="lengthfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="2" max="5"/> <filter class="solr.LengthFilterFactory" min="2" max="5"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldType name="charfilthtmlmap" class="solr.TextField"> <fieldType name="charfilthtmlmap" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
@ -239,7 +239,7 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -254,9 +254,9 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="numericsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="numericsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -271,9 +271,9 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="protectedsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="protectedsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -283,11 +283,11 @@
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- more flexible in matching skus, but more chance of a false match --> <!-- more flexible in matching skus, but more chance of a false match -->
<fieldtype name="skutype1" class="solr.TextField"> <fieldType name="skutype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -298,10 +298,10 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="skutype2" class="solr.TextField"> <fieldType name="skutype2" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -312,20 +312,20 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="syn" class="solr.TextField"> <fieldType name="syn" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="old_synonyms.txt"/> <filter class="solr.SynonymFilterFactory" synonyms="old_synonyms.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed <!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed
synonyms "better" synonyms "better"
--> -->
<fieldtype name="dedup" class="solr.TextField"> <fieldType name="dedup" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" <filter class="solr.SynonymFilterFactory"
@ -333,17 +333,17 @@
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory" /> <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="unstored" class="solr.StrField" indexed="true" stored="false"/> <fieldType name="unstored" class="solr.StrField" indexed="true" stored="false"/>
<fieldtype name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldType name="uuid" class="solr.UUIDField" /> <fieldType name="uuid" class="solr.UUIDField" />
@ -353,7 +353,7 @@
<fieldType name="tenD" class="solr.PointType" dimension="10" subFieldType="double"/> <fieldType name="tenD" class="solr.PointType" dimension="10" subFieldType="double"/>
<!-- Use the sub field suffix --> <!-- Use the sub field suffix -->
<fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="_d1"/> <fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="_d1"/>
<fieldtype name="geohash" class="solr.GeoHashField"/> <fieldType name="geohash" class="solr.GeoHashField"/>
<fieldType name="latLon" class="solr.LatLonType" subFieldType="double"/> <fieldType name="latLon" class="solr.LatLonType" subFieldType="double"/>

View File

@ -249,7 +249,7 @@
<!-- Poly field --> <!-- Poly field -->
<fieldType name="xy" class="solr.PointType" dimension="2" subFieldType="double"/> <fieldType name="xy" class="solr.PointType" dimension="2" subFieldType="double"/>
<fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="*_d"/> <fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="*_d"/>
<fieldtype name="geohash" class="solr.GeoHashField"/> <fieldType name="geohash" class="solr.GeoHashField"/>
<fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/> <fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
@ -273,14 +273,14 @@ valued. -->
<fieldType name="text_no_analyzer" stored="false" indexed="true" class="solr.TextField" /> <fieldType name="text_no_analyzer" stored="false" indexed="true" class="solr.TextField" />
<fieldtype name="text_length" class="solr.TextField"> <fieldType name="text_length" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
<filter class="solr.LengthFilterFactory" min="2" max="32768"/> <filter class="solr.LengthFilterFactory" min="2" max="32768"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Valid attributes for fields: <!-- Valid attributes for fields:

View File

@ -31,7 +31,7 @@
<!-- field type definitions... note that the "name" attribute is <!-- field type definitions... note that the "name" attribute is
just a label to be used by field definitions. The "class" just a label to be used by field definitions. The "class"
attribute and any other attributes determine the real type and attribute and any other attributes determine the real type and
behavior of the fieldtype. behavior of the fieldType.
--> -->
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
@ -45,43 +45,43 @@
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
<!-- Field type demonstrating an Analyzer failure --> <!-- Field type demonstrating an Analyzer failure -->
<fieldtype name="failtype1" class="solr.TextField"> <fieldType name="failtype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Demonstrating ignoreCaseChange --> <!-- Demonstrating ignoreCaseChange -->
<fieldtype name="wdf_nocase" class="solr.TextField"> <fieldType name="wdf_nocase" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="wdf_preserve" class="solr.TextField"> <fieldType name="wdf_preserve" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- HighlitText optimizes storage for (long) columns which will be highlit --> <!-- HighlitText optimizes storage for (long) columns which will be highlit -->
<fieldtype name="highlittext" class="solr.TextField"/> <fieldType name="highlittext" class="solr.TextField"/>
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" sortMissingLast="true"/> <fieldType name="date" class="solr.TrieDateField" sortMissingLast="true"/>
<fieldtype name="tdate" class="solr.TrieDateField" sortMissingLast="true" precisionStep="6"/> <fieldType name="tdate" class="solr.TrieDateField" sortMissingLast="true" precisionStep="6"/>
<fieldType name="text" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true" > <fieldType name="text" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true" >
<analyzer type="index"> <analyzer type="index">
@ -137,65 +137,65 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="nametext" class="solr.TextField"> <fieldType name="nametext" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/> <analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/>
</fieldtype> </fieldType>
<fieldtype name="teststop" class="solr.TextField"> <fieldType name="teststop" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.LowerCaseTokenizerFactory"/> <tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtypes in this section isolate tokenizers and tokenfilters for testing --> <!-- fieldTypes in this section isolate tokenizers and tokenfilters for testing -->
<fieldtype name="lowertok" class="solr.TextField"> <fieldType name="lowertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="keywordtok" class="solr.TextField"> <fieldType name="keywordtok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtok" class="solr.TextField"> <fieldType name="standardtok" class="solr.TextField">
<analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="lettertok" class="solr.TextField"> <fieldType name="lettertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="whitetok" class="solr.TextField"> <fieldType name="whitetok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLstandardtok" class="solr.TextField"> <fieldType name="HTMLstandardtok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLwhitetok" class="solr.TextField"> <fieldType name="HTMLwhitetok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtokfilt" class="solr.TextField"> <fieldType name="standardtokfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardfilt" class="solr.TextField"> <fieldType name="standardfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lowerfilt" class="solr.TextField"> <fieldType name="lowerfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="patternreplacefilt" class="solr.TextField"> <fieldType name="patternreplacefilt" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
<filter class="solr.PatternReplaceFilterFactory" <filter class="solr.PatternReplaceFilterFactory"
@ -205,46 +205,46 @@
<analyzer type="query"> <analyzer type="query">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="porterfilt" class="solr.TextField"> <fieldType name="porterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="engporterfilt" class="solr.TextField"> <fieldType name="engporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custengporterfilt" class="solr.TextField"> <fieldType name="custengporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/> <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="stopfilt" class="solr.TextField"> <fieldType name="stopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custstopfilt" class="solr.TextField"> <fieldType name="custstopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lengthfilt" class="solr.TextField"> <fieldType name="lengthfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="2" max="5"/> <filter class="solr.LengthFilterFactory" min="2" max="5"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -259,9 +259,9 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="numericsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="numericsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -276,9 +276,9 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="protectedsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="protectedsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -288,11 +288,11 @@
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- more flexible in matching skus, but more chance of a false match --> <!-- more flexible in matching skus, but more chance of a false match -->
<fieldtype name="skutype1" class="solr.TextField"> <fieldType name="skutype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -303,10 +303,10 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="skutype2" class="solr.TextField"> <fieldType name="skutype2" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -317,15 +317,15 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="syn" class="solr.TextField"> <fieldType name="syn" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- a text field with the stop filter only on the query analyzer <!-- a text field with the stop filter only on the query analyzer
--> -->
@ -356,7 +356,7 @@
<!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed <!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed
synonyms "better" synonyms "better"
--> -->
<fieldtype name="dedup" class="solr.TextField"> <fieldType name="dedup" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" <filter class="solr.SynonymFilterFactory"
@ -364,17 +364,17 @@
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory" /> <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="unstored" class="solr.StrField" indexed="true" stored="false"/> <fieldType name="unstored" class="solr.StrField" indexed="true" stored="false"/>
<fieldtype name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldType name="uuid" class="solr.UUIDField" /> <fieldType name="uuid" class="solr.UUIDField" />
<fieldType name="ignored" class="solr.StrField" indexed="false" stored="false" /> <fieldType name="ignored" class="solr.StrField" indexed="false" stored="false" />
@ -385,7 +385,7 @@
<!-- Poly field --> <!-- Poly field -->
<fieldType name="xy" class="solr.PointType" dimension="2" subFieldType="double"/> <fieldType name="xy" class="solr.PointType" dimension="2" subFieldType="double"/>
<fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="*_d"/> <fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="*_d"/>
<fieldtype name="geohash" class="solr.GeoHashField"/> <fieldType name="geohash" class="solr.GeoHashField"/>
<fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/> <fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. --> <!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->

View File

@ -43,43 +43,43 @@
<fieldType name="currency" class="solr.CurrencyField" currencyConfig="currency.xml" multiValued="false" /> <fieldType name="currency" class="solr.CurrencyField" currencyConfig="currency.xml" multiValued="false" />
<!-- Field type demonstrating an Analyzer failure --> <!-- Field type demonstrating an Analyzer failure -->
<fieldtype name="failtype1" class="solr.TextField"> <fieldType name="failtype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Demonstrating ignoreCaseChange --> <!-- Demonstrating ignoreCaseChange -->
<fieldtype name="wdf_nocase" class="solr.TextField"> <fieldType name="wdf_nocase" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="wdf_preserve" class="solr.TextField"> <fieldType name="wdf_preserve" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- HighlitText optimizes storage for (long) columns which will be highlit --> <!-- HighlitText optimizes storage for (long) columns which will be highlit -->
<fieldtype name="highlittext" class="solr.TextField"/> <fieldType name="highlittext" class="solr.TextField"/>
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" sortMissingLast="true"/> <fieldType name="date" class="solr.TrieDateField" sortMissingLast="true"/>
<fieldtype name="tdate" class="solr.TrieDateField" sortMissingLast="true" precisionStep="6"/> <fieldType name="tdate" class="solr.TrieDateField" sortMissingLast="true" precisionStep="6"/>
<fieldType name="text" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true" > <fieldType name="text" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true" >
<analyzer type="index"> <analyzer type="index">
@ -135,65 +135,65 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="nametext" class="solr.TextField"> <fieldType name="nametext" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/> <analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/>
</fieldtype> </fieldType>
<fieldtype name="teststop" class="solr.TextField"> <fieldType name="teststop" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.LowerCaseTokenizerFactory"/> <tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtypes in this section isolate tokenizers and tokenfilters for testing --> <!-- fieldTypes in this section isolate tokenizers and tokenfilters for testing -->
<fieldtype name="lowertok" class="solr.TextField"> <fieldType name="lowertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="keywordtok" class="solr.TextField"> <fieldType name="keywordtok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtok" class="solr.TextField"> <fieldType name="standardtok" class="solr.TextField">
<analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="lettertok" class="solr.TextField"> <fieldType name="lettertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="whitetok" class="solr.TextField"> <fieldType name="whitetok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLstandardtok" class="solr.TextField"> <fieldType name="HTMLstandardtok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLwhitetok" class="solr.TextField"> <fieldType name="HTMLwhitetok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtokfilt" class="solr.TextField"> <fieldType name="standardtokfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardfilt" class="solr.TextField"> <fieldType name="standardfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lowerfilt" class="solr.TextField"> <fieldType name="lowerfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="patternreplacefilt" class="solr.TextField"> <fieldType name="patternreplacefilt" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
<filter class="solr.PatternReplaceFilterFactory" <filter class="solr.PatternReplaceFilterFactory"
@ -203,52 +203,52 @@
<analyzer type="query"> <analyzer type="query">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="porterfilt" class="solr.TextField"> <fieldType name="porterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="engporterfilt" class="solr.TextField"> <fieldType name="engporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custengporterfilt" class="solr.TextField"> <fieldType name="custengporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/> <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="stopfilt" class="solr.TextField"> <fieldType name="stopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custstopfilt" class="solr.TextField"> <fieldType name="custstopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lengthfilt" class="solr.TextField"> <fieldType name="lengthfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="2" max="5"/> <filter class="solr.LengthFilterFactory" min="2" max="5"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="limitfilt" class="solr.TextField"> <fieldType name="limitfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="100" /> <filter class="solr.LimitTokenCountFilterFactory" maxTokenCount="100" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -263,9 +263,9 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="numericsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="numericsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -280,9 +280,9 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="protectedsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="protectedsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -292,11 +292,11 @@
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- more flexible in matching skus, but more chance of a false match --> <!-- more flexible in matching skus, but more chance of a false match -->
<fieldtype name="skutype1" class="solr.TextField"> <fieldType name="skutype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -307,10 +307,10 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="skutype2" class="solr.TextField"> <fieldType name="skutype2" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -321,15 +321,15 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="syn" class="solr.TextField"> <fieldType name="syn" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- a text field with the stop filter only on the query analyzer <!-- a text field with the stop filter only on the query analyzer
--> -->
@ -360,7 +360,7 @@
<!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed <!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed
synonyms "better" synonyms "better"
--> -->
<fieldtype name="dedup" class="solr.TextField"> <fieldType name="dedup" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" <filter class="solr.SynonymFilterFactory"
@ -368,17 +368,17 @@
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory" /> <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="unstored" class="solr.StrField" indexed="true" stored="false"/> <fieldType name="unstored" class="solr.StrField" indexed="true" stored="false"/>
<fieldtype name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldType name="uuid" class="solr.UUIDField" /> <fieldType name="uuid" class="solr.UUIDField" />
<fieldType name="ignored" class="solr.StrField" indexed="false" stored="false" /> <fieldType name="ignored" class="solr.StrField" indexed="false" stored="false" />
@ -389,7 +389,7 @@
<!-- Poly field --> <!-- Poly field -->
<fieldType name="xy" class="solr.PointType" dimension="2" subFieldType="double"/> <fieldType name="xy" class="solr.PointType" dimension="2" subFieldType="double"/>
<fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="*_d"/> <fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="*_d"/>
<fieldtype name="geohash" class="solr.GeoHashField"/> <fieldType name="geohash" class="solr.GeoHashField"/>
<fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/> <fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. --> <!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->

View File

@ -31,7 +31,7 @@
<!-- field type definitions... note that the "name" attribute is <!-- field type definitions... note that the "name" attribute is
just a label to be used by field definitions. The "class" just a label to be used by field definitions. The "class"
attribute and any other attributes determine the real type and attribute and any other attributes determine the real type and
behavior of the fieldtype. behavior of the fieldType.
--> -->
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
@ -45,43 +45,43 @@
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
<!-- Field type demonstrating an Analyzer failure --> <!-- Field type demonstrating an Analyzer failure -->
<fieldtype name="failtype1" class="solr.TextField"> <fieldType name="failtype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Demonstrating ignoreCaseChange --> <!-- Demonstrating ignoreCaseChange -->
<fieldtype name="wdf_nocase" class="solr.TextField"> <fieldType name="wdf_nocase" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="wdf_preserve" class="solr.TextField"> <fieldType name="wdf_preserve" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- HighlitText optimizes storage for (long) columns which will be highlit --> <!-- HighlitText optimizes storage for (long) columns which will be highlit -->
<fieldtype name="highlittext" class="solr.TextField"/> <fieldType name="highlittext" class="solr.TextField"/>
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" sortMissingLast="true"/> <fieldType name="date" class="solr.TrieDateField" sortMissingLast="true"/>
<fieldtype name="tdate" class="solr.TrieDateField" sortMissingLast="true" precisionStep="6"/> <fieldType name="tdate" class="solr.TrieDateField" sortMissingLast="true" precisionStep="6"/>
<fieldType name="text" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true" > <fieldType name="text" class="solr.TextField" positionIncrementGap="100" autoGeneratePhraseQueries="true" >
<analyzer type="index"> <analyzer type="index">
@ -137,65 +137,65 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="nametext" class="solr.TextField"> <fieldType name="nametext" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/> <analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/>
</fieldtype> </fieldType>
<fieldtype name="teststop" class="solr.TextField"> <fieldType name="teststop" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.LowerCaseTokenizerFactory"/> <tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtypes in this section isolate tokenizers and tokenfilters for testing --> <!-- fieldTypes in this section isolate tokenizers and tokenfilters for testing -->
<fieldtype name="lowertok" class="solr.TextField"> <fieldType name="lowertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="keywordtok" class="solr.TextField"> <fieldType name="keywordtok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtok" class="solr.TextField"> <fieldType name="standardtok" class="solr.TextField">
<analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="lettertok" class="solr.TextField"> <fieldType name="lettertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="whitetok" class="solr.TextField"> <fieldType name="whitetok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLstandardtok" class="solr.TextField"> <fieldType name="HTMLstandardtok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLwhitetok" class="solr.TextField"> <fieldType name="HTMLwhitetok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtokfilt" class="solr.TextField"> <fieldType name="standardtokfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardfilt" class="solr.TextField"> <fieldType name="standardfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lowerfilt" class="solr.TextField"> <fieldType name="lowerfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="patternreplacefilt" class="solr.TextField"> <fieldType name="patternreplacefilt" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
<filter class="solr.PatternReplaceFilterFactory" <filter class="solr.PatternReplaceFilterFactory"
@ -205,46 +205,46 @@
<analyzer type="query"> <analyzer type="query">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="porterfilt" class="solr.TextField"> <fieldType name="porterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="engporterfilt" class="solr.TextField"> <fieldType name="engporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custengporterfilt" class="solr.TextField"> <fieldType name="custengporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/> <filter class="solr.KeywordMarkerFilterFactory" protected="protwords.txt"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="stopfilt" class="solr.TextField"> <fieldType name="stopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custstopfilt" class="solr.TextField"> <fieldType name="custstopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" words="stopwords.txt"/> <filter class="solr.StopFilterFactory" words="stopwords.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lengthfilt" class="solr.TextField"> <fieldType name="lengthfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="2" max="5"/> <filter class="solr.LengthFilterFactory" min="2" max="5"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -259,9 +259,9 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="numericsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="numericsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -276,9 +276,9 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="protectedsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="protectedsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -288,11 +288,11 @@
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- more flexible in matching skus, but more chance of a false match --> <!-- more flexible in matching skus, but more chance of a false match -->
<fieldtype name="skutype1" class="solr.TextField"> <fieldType name="skutype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -303,10 +303,10 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="skutype2" class="solr.TextField"> <fieldType name="skutype2" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -317,15 +317,15 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="syn" class="solr.TextField"> <fieldType name="syn" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/> <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- a text field with the stop filter only on the query analyzer <!-- a text field with the stop filter only on the query analyzer
--> -->
@ -372,7 +372,7 @@
<!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed <!-- Demonstrates How RemoveDuplicatesTokenFilter makes stemmed
synonyms "better" synonyms "better"
--> -->
<fieldtype name="dedup" class="solr.TextField"> <fieldType name="dedup" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SynonymFilterFactory" <filter class="solr.SynonymFilterFactory"
@ -380,17 +380,17 @@
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory" /> <filter class="solr.RemoveDuplicatesTokenFilterFactory" />
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="unstored" class="solr.StrField" indexed="true" stored="false"/> <fieldType name="unstored" class="solr.StrField" indexed="true" stored="false"/>
<fieldtype name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldType name="uuid" class="solr.UUIDField" /> <fieldType name="uuid" class="solr.UUIDField" />
<fieldType name="ignored" class="solr.StrField" indexed="false" stored="false" /> <fieldType name="ignored" class="solr.StrField" indexed="false" stored="false" />
@ -401,7 +401,7 @@
<!-- Poly field --> <!-- Poly field -->
<fieldType name="xy" class="solr.PointType" dimension="2" subFieldType="double"/> <fieldType name="xy" class="solr.PointType" dimension="2" subFieldType="double"/>
<fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="*_d"/> <fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="*_d"/>
<fieldtype name="geohash" class="solr.GeoHashField"/> <fieldType name="geohash" class="solr.GeoHashField"/>
<fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/> <fieldType name="point" class="solr.PointType" dimension="2" subFieldSuffix="_d"/>
<!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. --> <!-- A specialized field for geospatial search. If indexed, this fieldType must not be multivalued. -->

View File

@ -40,7 +40,7 @@
<str name="sourceLocation">phrasesuggest.txt</str> <str name="sourceLocation">phrasesuggest.txt</str>
</lst> </lst>
<!-- specify a fieldtype using keywordtokenizer + lowercase + cleanup --> <!-- specify a fieldType using keywordtokenizer + lowercase + cleanup -->
<str name="queryAnalyzerFieldType">phrase_suggest</str> <str name="queryAnalyzerFieldType">phrase_suggest</str>
</searchComponent> </searchComponent>
@ -61,7 +61,7 @@
<str name="sourceLocation">jasuggest.txt</str> <str name="sourceLocation">jasuggest.txt</str>
</lst> </lst>
<!-- specify a fieldtype using keywordtokenizer + lowercase + cleanup --> <!-- specify a fieldType using keywordtokenizer + lowercase + cleanup -->
<str name="queryAnalyzerFieldType">phrase_suggest</str> <str name="queryAnalyzerFieldType">phrase_suggest</str>
</searchComponent> </searchComponent>
@ -79,7 +79,7 @@
<str name="sourceLocation">analyzingInfixSuggest.txt</str> <str name="sourceLocation">analyzingInfixSuggest.txt</str>
</lst> </lst>
<!-- specify a fieldtype using keywordtokenizer + lowercase + cleanup --> <!-- specify a fieldType using keywordtokenizer + lowercase + cleanup -->
<str name="queryAnalyzerFieldType">phrase_suggest</str> <str name="queryAnalyzerFieldType">phrase_suggest</str>
</searchComponent> </searchComponent>
@ -182,7 +182,7 @@
<str name="sourceLocation">fuzzysuggest.txt</str> <str name="sourceLocation">fuzzysuggest.txt</str>
</lst> </lst>
<!-- specify a fieldtype using keywordtokenizer + lowercase + cleanup --> <!-- specify a fieldType using keywordtokenizer + lowercase + cleanup -->
<str name="queryAnalyzerFieldType">phrase_suggest</str> <str name="queryAnalyzerFieldType">phrase_suggest</str>
</searchComponent> </searchComponent>
@ -204,7 +204,7 @@
<str name="sourceLocation">fuzzysuggest.txt</str> <str name="sourceLocation">fuzzysuggest.txt</str>
</lst> </lst>
<!-- specify a fieldtype using keywordtokenizer + lowercase + cleanup --> <!-- specify a fieldType using keywordtokenizer + lowercase + cleanup -->
<str name="queryAnalyzerFieldType">phrase_suggest</str> <str name="queryAnalyzerFieldType">phrase_suggest</str>
</searchComponent> </searchComponent>
@ -226,7 +226,7 @@
<str name="sourceLocation">fuzzysuggest.txt</str> <str name="sourceLocation">fuzzysuggest.txt</str>
</lst> </lst>
<!-- specify a fieldtype using keywordtokenizer + lowercase + cleanup --> <!-- specify a fieldType using keywordtokenizer + lowercase + cleanup -->
<str name="queryAnalyzerFieldType">phrase_suggest</str> <str name="queryAnalyzerFieldType">phrase_suggest</str>
</searchComponent> </searchComponent>
@ -248,7 +248,7 @@
<str name="sourceLocation">fuzzysuggest.txt</str> <str name="sourceLocation">fuzzysuggest.txt</str>
</lst> </lst>
<!-- specify a fieldtype using keywordtokenizer + lowercase + cleanup --> <!-- specify a fieldType using keywordtokenizer + lowercase + cleanup -->
<str name="queryAnalyzerFieldType">phrase_suggest</str> <str name="queryAnalyzerFieldType">phrase_suggest</str>
</searchComponent> </searchComponent>

View File

@ -23,8 +23,8 @@
<schema name="test" version="1.0"> <schema name="test" version="1.0">
<types> <types>
<fieldtype name="int" class="solr.TrieIntField" precisionStep="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0"/>
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
@ -32,7 +32,7 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>

View File

@ -390,7 +390,7 @@
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<!-- The "RandomSortField" is not used to store or search any <!-- The "RandomSortField" is not used to store or search any
data. You can declare fields of this type it in your schema data. You can declare fields of this type it in your schema
@ -623,14 +623,14 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" > <fieldType name="phonetic" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > <fieldType name="payloads" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- <!--
@ -646,7 +646,7 @@
--> -->
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- lowercases the entire field value, keeping it as a single token. --> <!-- lowercases the entire field value, keeping it as a single token. -->
<fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
@ -683,7 +683,7 @@
<!-- since fields of this type are by default not stored or indexed, <!-- since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. --> any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<!-- This point type indexes the coordinates as separate fields (subFields) <!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field If subFieldType is defined, it references a type, and a dynamic field

View File

@ -309,7 +309,7 @@
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<!-- The "RandomSortField" is not used to store or search any <!-- The "RandomSortField" is not used to store or search any
data. You can declare fields of this type it in your schema data. You can declare fields of this type it in your schema
@ -542,14 +542,14 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" > <fieldType name="phonetic" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > <fieldType name="payloads" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- <!--
@ -565,7 +565,7 @@
--> -->
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- lowercases the entire field value, keeping it as a single token. --> <!-- lowercases the entire field value, keeping it as a single token. -->
<fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
@ -602,7 +602,7 @@
<!-- since fields of this type are by default not stored or indexed, <!-- since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. --> any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<!-- This point type indexes the coordinates as separate fields (subFields) <!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field If subFieldType is defined, it references a type, and a dynamic field

View File

@ -233,7 +233,7 @@
standard package such as org.apache.solr.analysis standard package such as org.apache.solr.analysis
--> -->
<fieldtype name="html" stored="true" indexed="true" class="solr.TextField"> <fieldType name="html" stored="true" indexed="true" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
@ -258,7 +258,7 @@
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
<filter class="solr.RemoveDuplicatesTokenFilterFactory"/> <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- The StrField type is not analyzed, but indexed/stored verbatim. <!-- The StrField type is not analyzed, but indexed/stored verbatim.
It supports doc values but in that case the field needs to be It supports doc values but in that case the field needs to be
@ -340,7 +340,7 @@
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<!-- The "RandomSortField" is not used to store or search any <!-- The "RandomSortField" is not used to store or search any
data. You can declare fields of this type it in your schema data. You can declare fields of this type it in your schema
@ -573,14 +573,14 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" > <fieldType name="phonetic" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > <fieldType name="payloads" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- <!--
@ -596,7 +596,7 @@
--> -->
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- lowercases the entire field value, keeping it as a single token. --> <!-- lowercases the entire field value, keeping it as a single token. -->
<fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
@ -633,7 +633,7 @@
<!-- since fields of this type are by default not stored or indexed, <!-- since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. --> any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<!-- This point type indexes the coordinates as separate fields (subFields) <!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field If subFieldType is defined, it references a type, and a dynamic field

View File

@ -390,7 +390,7 @@
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<!-- The "RandomSortField" is not used to store or search any <!-- The "RandomSortField" is not used to store or search any
data. You can declare fields of this type it in your schema data. You can declare fields of this type it in your schema
@ -623,14 +623,14 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" > <fieldType name="phonetic" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > <fieldType name="payloads" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- <!--
@ -646,7 +646,7 @@
--> -->
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- lowercases the entire field value, keeping it as a single token. --> <!-- lowercases the entire field value, keeping it as a single token. -->
<fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
@ -683,7 +683,7 @@
<!-- since fields of this type are by default not stored or indexed, <!-- since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. --> any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<!-- This point type indexes the coordinates as separate fields (subFields) <!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field If subFieldType is defined, it references a type, and a dynamic field

View File

@ -272,7 +272,7 @@
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<!-- The "RandomSortField" is not used to store or search any <!-- The "RandomSortField" is not used to store or search any
data. You can declare fields of this type it in your schema data. You can declare fields of this type it in your schema
@ -457,14 +457,14 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" > <fieldType name="phonetic" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > <fieldType name="payloads" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- <!--
@ -480,7 +480,7 @@
--> -->
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- lowercases the entire field value, keeping it as a single token. --> <!-- lowercases the entire field value, keeping it as a single token. -->
<fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
@ -517,7 +517,7 @@
<!-- since fields of this type are by default not stored or indexed, <!-- since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. --> any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<!-- This point type indexes the coordinates as separate fields (subFields) <!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field If subFieldType is defined, it references a type, and a dynamic field

View File

@ -257,7 +257,7 @@
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<!-- The "RandomSortField" is not used to store or search any <!-- The "RandomSortField" is not used to store or search any
data. You can declare fields of this type it in your schema data. You can declare fields of this type it in your schema
@ -481,7 +481,7 @@
<!-- since fields of this type are by default not stored or indexed, <!-- since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. --> any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<!-- This point type indexes the coordinates as separate fields (subFields) <!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field If subFieldType is defined, it references a type, and a dynamic field

View File

@ -327,7 +327,7 @@
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<!-- The "RandomSortField" is not used to store or search any <!-- The "RandomSortField" is not used to store or search any
data. You can declare fields of this type it in your schema data. You can declare fields of this type it in your schema
@ -551,14 +551,14 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" > <fieldType name="phonetic" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > <fieldType name="payloads" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- <!--
@ -574,7 +574,7 @@
--> -->
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- lowercases the entire field value, keeping it as a single token. --> <!-- lowercases the entire field value, keeping it as a single token. -->
<fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
@ -611,7 +611,7 @@
<!-- since fields of this type are by default not stored or indexed, <!-- since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. --> any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<!-- This point type indexes the coordinates as separate fields (subFields) <!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field If subFieldType is defined, it references a type, and a dynamic field

View File

@ -391,7 +391,7 @@
<!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings --> <!--Binary data type. The data should be sent/retrieved in as Base64 encoded Strings -->
<fieldtype name="binary" class="solr.BinaryField"/> <fieldType name="binary" class="solr.BinaryField"/>
<!-- The "RandomSortField" is not used to store or search any <!-- The "RandomSortField" is not used to store or search any
data. You can declare fields of this type it in your schema data. You can declare fields of this type it in your schema
@ -624,14 +624,14 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="phonetic" stored="false" indexed="true" class="solr.TextField" > <fieldType name="phonetic" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/> <filter class="solr.DoubleMetaphoneFilterFactory" inject="false"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="payloads" stored="false" indexed="true" class="solr.TextField" > <fieldType name="payloads" stored="false" indexed="true" class="solr.TextField" >
<analyzer> <analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/>
<!-- <!--
@ -647,7 +647,7 @@
--> -->
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/> <filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- lowercases the entire field value, keeping it as a single token. --> <!-- lowercases the entire field value, keeping it as a single token. -->
<fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100"> <fieldType name="lowercase" class="solr.TextField" positionIncrementGap="100">
@ -684,7 +684,7 @@
<!-- since fields of this type are by default not stored or indexed, <!-- since fields of this type are by default not stored or indexed,
any data added to them will be ignored outright. --> any data added to them will be ignored outright. -->
<fieldtype name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" /> <fieldType name="ignored" stored="false" indexed="false" multiValued="true" class="solr.StrField" />
<!-- This point type indexes the coordinates as separate fields (subFields) <!-- This point type indexes the coordinates as separate fields (subFields)
If subFieldType is defined, it references a type, and a dynamic field If subFieldType is defined, it references a type, and a dynamic field

View File

@ -29,7 +29,7 @@
<types> <types>
<fieldType name="integer" class="solr.TrieIntField" precisionStep="0"/> <fieldType name="integer" class="solr.TrieIntField" precisionStep="0"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
</types> </types>

View File

@ -31,7 +31,7 @@
<!-- field type definitions... note that the "name" attribute is <!-- field type definitions... note that the "name" attribute is
just a label to be used by field definitions. The "class" just a label to be used by field definitions. The "class"
attribute and any other attributes determine the real type and attribute and any other attributes determine the real type and
behavior of the fieldtype. behavior of the fieldType.
--> -->
<fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/>
@ -45,47 +45,47 @@
<fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/> <fieldType name="tdouble" class="solr.TrieDoubleField" precisionStep="8" omitNorms="true" positionIncrementGap="0"/>
<!-- Field type demonstrating an Analyzer failure --> <!-- Field type demonstrating an Analyzer failure -->
<fieldtype name="failtype1" class="solr.TextField"> <fieldType name="failtype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- Demonstrating ignoreCaseChange --> <!-- Demonstrating ignoreCaseChange -->
<fieldtype name="wdf_nocase" class="solr.TextField"> <fieldType name="wdf_nocase" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="0" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="wdf_preserve" class="solr.TextField"> <fieldType name="wdf_preserve" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="1" catenateWords="0" catenateNumbers="0" catenateAll="0" splitOnCaseChange="0" preserveOriginal="1"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="boolean" class="solr.BoolField" sortMissingLast="true"/> <fieldType name="boolean" class="solr.BoolField" sortMissingLast="true"/>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true"/>
<!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional <!-- format for date is 1995-12-31T23:59:59.999Z and only the fractional
seconds part (.999) is optional. seconds part (.999) is optional.
--> -->
<fieldtype name="date" class="solr.TrieDateField" precisionStep="0"/> <fieldType name="date" class="solr.TrieDateField" precisionStep="0"/>
<fieldtype name="tdate" class="solr.TrieDateField" precisionStep="6"/> <fieldType name="tdate" class="solr.TrieDateField" precisionStep="6"/>
<!-- solr.TextField allows the specification of custom <!-- solr.TextField allows the specification of custom
text analyzers specified as a tokenizer and a list text analyzers specified as a tokenizer and a list
of token filters. of token filters.
--> -->
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
@ -93,74 +93,74 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="nametext" class="solr.TextField"> <fieldType name="nametext" class="solr.TextField">
<analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/> <analyzer class="org.apache.lucene.analysis.core.WhitespaceAnalyzer"/>
</fieldtype> </fieldType>
<fieldtype name="teststop" class="solr.TextField"> <fieldType name="teststop" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.LowerCaseTokenizerFactory"/> <tokenizer class="solr.LowerCaseTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtypes in this section isolate tokenizers and tokenfilters for testing --> <!-- fieldTypes in this section isolate tokenizers and tokenfilters for testing -->
<fieldtype name="lowertok" class="solr.TextField"> <fieldType name="lowertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LowerCaseTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="keywordtok" class="solr.TextField"> <fieldType name="keywordtok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtok" class="solr.TextField"> <fieldType name="standardtok" class="solr.TextField">
<analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.StandardTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="lettertok" class="solr.TextField"> <fieldType name="lettertok" class="solr.TextField">
<analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.LetterTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="whitetok" class="solr.TextField"> <fieldType name="whitetok" class="solr.TextField">
<analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer> <analyzer><tokenizer class="solr.MockTokenizerFactory"/></analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLstandardtok" class="solr.TextField"> <fieldType name="HTMLstandardtok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="HTMLwhitetok" class="solr.TextField"> <fieldType name="HTMLwhitetok" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardtokfilt" class="solr.TextField"> <fieldType name="standardtokfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="standardfilt" class="solr.TextField"> <fieldType name="standardfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lowerfilt" class="solr.TextField"> <fieldType name="lowerfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lowerpunctfilt" class="solr.TextField"> <fieldType name="lowerpunctfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="1" splitOnCaseChange="1"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="1" splitOnCaseChange="1"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="patternreplacefilt" class="solr.TextField"> <fieldType name="patternreplacefilt" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
<filter class="solr.PatternReplaceFilterFactory" <filter class="solr.PatternReplaceFilterFactory"
@ -170,53 +170,53 @@
<analyzer type="query"> <analyzer type="query">
<tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/> <tokenizer class="solr.MockTokenizerFactory" pattern="keyword"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="patterntok" class="solr.TextField"> <fieldType name="patterntok" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.PatternTokenizerFactory" pattern=","/> <tokenizer class="solr.PatternTokenizerFactory" pattern=","/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="porterfilt" class="solr.TextField"> <fieldType name="porterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- fieldtype name="snowballfilt" class="solr.TextField"> <!-- fieldType name="snowballfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.SnowballPorterFilterFactory"/> <filter class="solr.SnowballPorterFilterFactory"/>
</analyzer> </analyzer>
</fieldtype --> </fieldType -->
<fieldtype name="engporterfilt" class="solr.TextField"> <fieldType name="engporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custengporterfilt" class="solr.TextField"> <fieldType name="custengporterfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="stopfilt" class="solr.TextField"> <fieldType name="stopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.StopFilterFactory" ignoreCase="true"/> <filter class="solr.StopFilterFactory" ignoreCase="true"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="custstopfilt" class="solr.TextField"> <fieldType name="custstopfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="lengthfilt" class="solr.TextField"> <fieldType name="lengthfilt" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LengthFilterFactory" min="2" max="5"/> <filter class="solr.LengthFilterFactory" min="2" max="5"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldType name="charfilthtmlmap" class="solr.TextField"> <fieldType name="charfilthtmlmap" class="solr.TextField">
<analyzer> <analyzer>
<charFilter class="solr.HTMLStripCharFilterFactory"/> <charFilter class="solr.HTMLStripCharFilterFactory"/>
@ -224,7 +224,7 @@
</analyzer> </analyzer>
</fieldType> </fieldType>
<fieldtype name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="subword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -239,9 +239,9 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="numericsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="numericsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -256,9 +256,9 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="protectedsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="protectedsubword" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
@ -268,11 +268,11 @@
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- more flexible in matching skus, but more chance of a false match --> <!-- more flexible in matching skus, but more chance of a false match -->
<fieldtype name="skutype1" class="solr.TextField"> <fieldType name="skutype1" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -283,10 +283,10 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="skutype2" class="solr.TextField"> <fieldType name="skutype2" class="solr.TextField">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
@ -297,25 +297,25 @@
<filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/> <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<!-- less flexible in matching skus, but less chance of a false match --> <!-- less flexible in matching skus, but less chance of a false match -->
<fieldtype name="syn" class="solr.TextField"> <fieldType name="syn" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldtype name="unstored" class="solr.StrField" indexed="true" stored="false"/> <fieldType name="unstored" class="solr.StrField" indexed="true" stored="false"/>
<fieldtype name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100"> <fieldType name="textgap" class="solr.TextField" multiValued="true" positionIncrementGap="100">
<analyzer> <analyzer>
<tokenizer class="solr.MockTokenizerFactory"/> <tokenizer class="solr.MockTokenizerFactory"/>
<filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.LowerCaseFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
<fieldType name="uuid" class="solr.UUIDField" /> <fieldType name="uuid" class="solr.UUIDField" />
@ -325,7 +325,7 @@
<fieldType name="tenD" class="solr.PointType" dimension="10" subFieldType="double"/> <fieldType name="tenD" class="solr.PointType" dimension="10" subFieldType="double"/>
<!-- Use the sub field suffix --> <!-- Use the sub field suffix -->
<fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="_d1"/> <fieldType name="xyd" class="solr.PointType" dimension="2" subFieldSuffix="_d1"/>
<fieldtype name="geohash" class="solr.GeoHashField"/> <fieldType name="geohash" class="solr.GeoHashField"/>
<fieldType name="latLon" class="solr.LatLonType" subFieldType="double"/> <fieldType name="latLon" class="solr.LatLonType" subFieldType="double"/>

View File

@ -23,8 +23,8 @@
<schema name="test" version="1.0"> <schema name="test" version="1.0">
<types> <types>
<fieldtype name="int" class="solr.TrieIntField" precisionStep="0"/> <fieldType name="int" class="solr.TrieIntField" precisionStep="0"/>
<fieldtype name="text" class="solr.TextField"> <fieldType name="text" class="solr.TextField">
<analyzer> <analyzer>
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>
<filter class="solr.StandardFilterFactory"/> <filter class="solr.StandardFilterFactory"/>
@ -32,7 +32,7 @@
<filter class="solr.StopFilterFactory"/> <filter class="solr.StopFilterFactory"/>
<filter class="solr.PorterStemFilterFactory"/> <filter class="solr.PorterStemFilterFactory"/>
</analyzer> </analyzer>
</fieldtype> </fieldType>
</types> </types>

View File

@ -18,7 +18,7 @@
<schema name="example core ${l10n:}" version="1.1"> <schema name="example core ${l10n:}" version="1.1">
<types> <types>
<fieldtype name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/> <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
<fieldType name="text-FR" class="solr.TextField" positionIncrementGap="100"> <fieldType name="text-FR" class="solr.TextField" positionIncrementGap="100">
<analyzer type="index"> <analyzer type="index">
<tokenizer class="solr.StandardTokenizerFactory"/> <tokenizer class="solr.StandardTokenizerFactory"/>