Builder
Functions
Link copied to clipboard
fun addCharFilter(factory: KClass<out CharFilterFactory>, params: MutableMap<String, String>): CustomAnalyzer.Builder
fun addCharFilter(factory: KClass<out CharFilterFactory>, vararg params: String): CustomAnalyzer.Builder
Adds the given char filter.
Link copied to clipboard
fun addTokenFilter(factory: KClass<out TokenFilterFactory>, params: MutableMap<String, String>): CustomAnalyzer.Builder
fun addTokenFilter(factory: KClass<out TokenFilterFactory>, vararg params: String): CustomAnalyzer.Builder
Adds the given token filter.
Link copied to clipboard
Builds the analyzer.
Link copied to clipboard
fun when(factory: KClass<out ConditionalTokenFilterFactory>, params: MutableMap<String, String>): CustomAnalyzer.ConditionBuilder
fun when(factory: KClass<out ConditionalTokenFilterFactory>, vararg params: String): CustomAnalyzer.ConditionBuilder
Add a ConditionalTokenFilterFactory to the analysis chain
Link copied to clipboard
Apply subsequent token filters if the current token's term matches a predicate
Link copied to clipboard
This match version is passed as default to all tokenizers or filters. It is used unless you pass the parameter {code luceneMatchVersion} explicitly. It defaults to undefined, so the underlying factory will (in most cases) use Version.LATEST.
Link copied to clipboard
Sets the offset gap of the analyzer. The default is defined in the analyzer base class.
Link copied to clipboard
Sets the position increment gap of the analyzer. The default is defined in the analyzer base class.
Link copied to clipboard
fun withTokenizer(factory: KClass<out TokenizerFactory>, params: MutableMap<String, String>): CustomAnalyzer.Builder
fun withTokenizer(factory: KClass<out TokenizerFactory>, vararg params: String): CustomAnalyzer.Builder
Uses the given tokenizer.