org.apache.lucene.analysis.shingle

Class ShingleFilterFactory



  • public class ShingleFilterFactory
    extends TokenFilterFactory
    Factory for ShingleFilter.
     <fieldType name="text_shingle" class="solr.TextField" positionIncrementGap="100">
       <analyzer>
         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
         <filter class="solr.ShingleFilterFactory" minShingleSize="2" maxShingleSize="2"
                 outputUnigrams="true" outputUnigramsIfNoShingles="false" tokenSeparator=" " fillerToken="_"/>
       </analyzer>
     </fieldType>