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="2" preserveOriginal="true"/>
       </analyzer>
     </fieldType>
    Since:
    3.1
    SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
    "edgeNGram"