Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <fieldType name="text" class="solr.TextField" positionIncrementGap="1000">
- <analyzer type="index">
- <tokenizer class="solr.WhitespaceTokenizerFactory"/>
- <!-- in this example, we will only use synonyms at query time
- <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
- -->
- <!-- Case insensitive stop word removal.
- enablePositionIncrements=true ensures that a 'gap' is left to
- allow for accurate phrase queries.
- -->
- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
- <!-- enablePositionIncrements="true" -->
- <filter class="solr.ISOLatin1AccentFilterFactory"/>
- <filter class="solr.LowerCaseFilterFactory"/>
- <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
- <!-- splitOnCaseChange="1" --><!--
- <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
- -->
- <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
- </analyzer>
- <analyzer type="query">
- <tokenizer class="solr.WhitespaceTokenizerFactory"/>
- <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
- <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
- <!-- enablePositionIncrements="true" -->
- <filter class="solr.ISOLatin1AccentFilterFactory"/>
- <filter class="solr.LowerCaseFilterFactory"/>
- <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
- <!-- splitOnCaseChange="1" -->
- <!--
- <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
- -->
- <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
- </analyzer>
- </fieldType>
Advertisement
Add Comment
Please, Sign In to add comment