Class KeywordTokenizerFactory


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