org.apache.lucene.analysis.ngram

Class EdgeNGramFilterFactory



  • public class EdgeNGramFilterFactory
    extends TokenFilterFactory
    Creates new instances of EdgeNGramTokenFilter.
     <fieldType name="text_edgngrm" class="solr.TextField" positionIncrementGap="100">
       <analyzer>
         <tokenizer class="solr.WhitespaceTokenizerFactory"/>
         <filter class="solr.EdgeNGramFilterFactory" minGramSize="1" maxGramSize="1"/>
       </analyzer>
     </fieldType>