CapitalizationFilter

class CapitalizationFilter(in: TokenStream, onlyFirstWord: Boolean = true, keep: CharArraySet? = null, forceFirstLetter: Boolean = true, okPrefix: Collection<CharArray>? = null, minWordLength: Int = 0, maxWordCount: Int = DEFAULT_MAX_WORD_COUNT, maxTokenLength: Int = DEFAULT_MAX_TOKEN_LENGTH) : TokenFilter

A filter to apply normal capitalization rules to Tokens. It will make the first letter capital and the rest lower case.

This filter is particularly useful to build nice looking facet parameters. This filter is not appropriate if you intend to use a prefix query.

Constructors

Link copied to clipboard
constructor(in: TokenStream, onlyFirstWord: Boolean = true, keep: CharArraySet? = null, forceFirstLetter: Boolean = true, okPrefix: Collection<CharArray>? = null, minWordLength: Int = 0, maxWordCount: Int = DEFAULT_MAX_WORD_COUNT, maxTokenLength: Int = DEFAULT_MAX_TOKEN_LENGTH)

Types

Link copied to clipboard
object Companion

Properties

Functions

Link copied to clipboard
fun <T : Attribute> addAttribute(attClass: KClass<T>): T
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun close()
Link copied to clipboard
fun copyTo(target: AttributeSource)
Link copied to clipboard
open override fun end()
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(obj: Any?): Boolean
Link copied to clipboard
fun <T : Attribute> getAttribute(attClass: KClass<T>): T?
Link copied to clipboard
fun hasAttribute(attClass: KClass<out Attribute>): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun incrementToken(): Boolean
Link copied to clipboard
fun reflectAsString(prependAttClass: Boolean): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun reset()
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun unwrap(): TokenStream