LetterTokenizerFactory

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

Constructors

Link copied to clipboard
constructor(args: MutableMap<String, String>)

Creates a new LetterTokenizerFactory

constructor()

Default ctor for compatibility with SPI

Types

Link copied to clipboard
object Companion

SPI name

Properties

Link copied to clipboard
Link copied to clipboard
lateinit var originalArgs: Map<String, String>

Functions

Link copied to clipboard
open override fun create(factory: AttributeFactory): LetterTokenizer
Link copied to clipboard
fun get(args: MutableMap<String, String>, name: String): String?
fun get(args: MutableMap<String, String>, name: String, defaultVal: String): String
fun get(args: MutableMap<String, String>, name: String, allowedValues: MutableCollection<String>, defaultVal: String?, caseSensitive: Boolean): String?
Link copied to clipboard
fun getChar(args: MutableMap<String, String>, name: String, defaultValue: Char): Char
Link copied to clipboard
Link copied to clipboard
fun require(args: MutableMap<String, String>, name: String, allowedValues: MutableCollection<String>, caseSensitive: Boolean): String
Link copied to clipboard