Uses of Class
org.apache.lucene.analysis.custom.CustomAnalyzer.ConditionBuilder
Package
Description
A general-purpose Analyzer that can be created with a builder-style API.
-
Uses of CustomAnalyzer.ConditionBuilder in org.apache.lucene.analysis.custom
Modifier and TypeMethodDescriptionCustomAnalyzer.ConditionBuilder.addTokenFilter
(Class<? extends TokenFilterFactory> factory, String... params) Adds the given token filter.CustomAnalyzer.ConditionBuilder.addTokenFilter
(Class<? extends TokenFilterFactory> factory, Map<String, String> params) Adds the given token filter.CustomAnalyzer.ConditionBuilder.addTokenFilter
(String name, String... params) Adds the given token filter.CustomAnalyzer.ConditionBuilder.addTokenFilter
(String name, Map<String, String> params) Adds the given token filter.CustomAnalyzer.Builder.when
(Class<? extends ConditionalTokenFilterFactory> factory, String... params) Add aConditionalTokenFilterFactory
to the analysis chainCustomAnalyzer.Builder.when
(Class<? extends ConditionalTokenFilterFactory> factory, Map<String, String> params) Add aConditionalTokenFilterFactory
to the analysis chainAdd aConditionalTokenFilterFactory
to the analysis chainAdd aConditionalTokenFilterFactory
to the analysis chainCustomAnalyzer.Builder.when
(ConditionalTokenFilterFactory factory) Add aConditionalTokenFilterFactory
to the analysis chainCustomAnalyzer.Builder.whenTerm
(Predicate<CharSequence> predicate) Apply subsequent token filters if the current token's term matches a predicate