Class LetterTokenizerFactory


  • public class LetterTokenizerFactory
    extends TokenizerFactory
    Factory for LetterTokenizer.
     <fieldType name="text_letter" class="solr.TextField" positionIncrementGap="100">
       <analyzer>
         <tokenizer class="solr.LetterTokenizerFactory" maxTokenLen="256"/>
       </analyzer>
     </fieldType>
    Options:
    • maxTokenLen: max token length, must be greater than 0 and less than MAX_TOKEN_LENGTH_LIMIT (1024*1024). It is rare to need to change this else CharTokenizer::DEFAULT_MAX_TOKEN_LEN
    Since:
    3.1
    SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
    "letter"