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
  • Field Details

  • Constructor Details

    • KeywordTokenizerFactory

      public KeywordTokenizerFactory(Map<String,String> args)
      Creates a new KeywordTokenizerFactory
    • KeywordTokenizerFactory

      public KeywordTokenizerFactory()
      Default ctor for compatibility with SPI
  • Method Details