Class NGramTokenizerFactory


  • public class NGramTokenizerFactory
    extends TokenizerFactory
    Factory for NGramTokenizer.
     <fieldType name="text_ngrm" class="solr.TextField" positionIncrementGap="100">
       <analyzer>
         <tokenizer class="solr.NGramTokenizerFactory" minGramSize="1" maxGramSize="2"/>
       </analyzer>
     </fieldType>
    Since:
    3.1
    SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
    "nGram"