Guest User

Untitled

a guest
Nov 9th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.00 KB | None | 0 0
  1. <fieldType name="text" class="solr.TextField" positionIncrementGap="1000">
  2.     <analyzer type="index">
  3.         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
  4.         <!-- in this example, we will only use synonyms at query time
  5.        <filter class="solr.SynonymFilterFactory" synonyms="index_synonyms.txt" ignoreCase="true" expand="false"/>
  6.        -->
  7.         <!-- Case insensitive stop word removal.
  8.             enablePositionIncrements=true ensures that a 'gap' is left to
  9.             allow for accurate phrase queries.
  10.        -->
  11.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
  12.         <!-- enablePositionIncrements="true" -->
  13.         <filter class="solr.ISOLatin1AccentFilterFactory"/>
  14.         <filter class="solr.LowerCaseFilterFactory"/>
  15.         <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
  16.         <!-- splitOnCaseChange="1" --><!--
  17.         <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
  18.         -->
  19.          <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
  20.     </analyzer>
  21.     <analyzer type="query">
  22.         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
  23.         <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" ignoreCase="true" expand="true"/>
  24.         <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"/>
  25.         <!-- enablePositionIncrements="true" -->
  26.         <filter class="solr.ISOLatin1AccentFilterFactory"/>
  27.         <filter class="solr.LowerCaseFilterFactory"/>
  28.         <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="0"/>
  29.         <!-- splitOnCaseChange="1" -->
  30.         <!--
  31.         <filter class="solr.EnglishPorterFilterFactory" protected="protwords.txt"/>
  32.         -->
  33.         <filter class="solr.RemoveDuplicatesTokenFilterFactory"/>
  34.     </analyzer>
  35. </fieldType>
  36.  
Advertisement
Add Comment
Please, Sign In to add comment