Package | Description |
---|---|
org.apache.lucene.analysis.custom |
A general-purpose Analyzer that can be created with a builder-style API.
|
Modifier and Type | Method and Description |
---|---|
CustomAnalyzer.ConditionBuilder |
CustomAnalyzer.ConditionBuilder.addTokenFilter(java.lang.Class<? extends TokenFilterFactory> factory,
java.util.Map<java.lang.String,java.lang.String> params)
Adds the given token filter.
|
CustomAnalyzer.ConditionBuilder |
CustomAnalyzer.ConditionBuilder.addTokenFilter(java.lang.Class<? extends TokenFilterFactory> factory,
java.lang.String... params)
Adds the given token filter.
|
CustomAnalyzer.ConditionBuilder |
CustomAnalyzer.ConditionBuilder.addTokenFilter(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> params)
Adds the given token filter.
|
CustomAnalyzer.ConditionBuilder |
CustomAnalyzer.ConditionBuilder.addTokenFilter(java.lang.String name,
java.lang.String... params)
Adds the given token filter.
|
CustomAnalyzer.ConditionBuilder |
CustomAnalyzer.Builder.when(java.lang.Class<? extends ConditionalTokenFilterFactory> factory,
java.util.Map<java.lang.String,java.lang.String> params)
Add a
ConditionalTokenFilterFactory to the analysis chain
TokenFilters added by subsequent calls to addTokenFilter(String, String...)
and related functions will only be used if the current token matches the condition. |
CustomAnalyzer.ConditionBuilder |
CustomAnalyzer.Builder.when(java.lang.Class<? extends ConditionalTokenFilterFactory> factory,
java.lang.String... params)
Add a
ConditionalTokenFilterFactory to the analysis chain
TokenFilters added by subsequent calls to addTokenFilter(String, String...)
and related functions will only be used if the current token matches the condition. |
CustomAnalyzer.ConditionBuilder |
CustomAnalyzer.Builder.when(ConditionalTokenFilterFactory factory)
Add a
ConditionalTokenFilterFactory to the analysis chain
TokenFilters added by subsequent calls to addTokenFilter(String, String...)
and related functions will only be used if the current token matches the condition. |
CustomAnalyzer.ConditionBuilder |
CustomAnalyzer.Builder.when(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> params)
Add a
ConditionalTokenFilterFactory to the analysis chain
TokenFilters added by subsequent calls to addTokenFilter(String, String...)
and related functions will only be used if the current token matches the condition. |
CustomAnalyzer.ConditionBuilder |
CustomAnalyzer.Builder.when(java.lang.String name,
java.lang.String... params)
Add a
ConditionalTokenFilterFactory to the analysis chain
TokenFilters added by subsequent calls to addTokenFilter(String, String...)
and related functions will only be used if the current token matches the condition. |
CustomAnalyzer.ConditionBuilder |
CustomAnalyzer.Builder.whenTerm(java.util.function.Predicate<java.lang.CharSequence> predicate)
Apply subsequent token filters if the current token's term matches a predicate
This is the equivalent of:
|
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.