Class AnalyzeRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<Request,Response>
org.elasticsearch.action.support.single.shard.SingleShardOperationRequestBuilder<AnalyzeAction.Request,AnalyzeAction.Response,AnalyzeRequestBuilder>
org.elasticsearch.action.admin.indices.analyze.AnalyzeRequestBuilder
public class AnalyzeRequestBuilder extends SingleShardOperationRequestBuilder<AnalyzeAction.Request,AnalyzeAction.Response,AnalyzeRequestBuilder>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AnalyzeRequestBuilder(ElasticsearchClient client, AnalyzeAction action)
AnalyzeRequestBuilder(ElasticsearchClient client, AnalyzeAction action, java.lang.String index, java.lang.String... text)
-
Method Summary
Modifier and Type Method Description AnalyzeRequestBuilder
addCharFilter(java.lang.String tokenFilter)
Add a name of char filter that will be used before the tokenizer.AnalyzeRequestBuilder
addCharFilter(java.util.Map<java.lang.String,?> charFilter)
Add char filter setting that will be used on top of a tokenizer provided.AnalyzeRequestBuilder
addTokenFilter(java.lang.String tokenFilter)
Add a name of token filter that will be used on top of a tokenizer provided.AnalyzeRequestBuilder
addTokenFilter(java.util.Map<java.lang.String,?> tokenFilter)
Add token filter setting that will be used on top of a tokenizer provided.AnalyzeRequestBuilder
setAnalyzer(java.lang.String analyzer)
Sets the analyzer name to use in order to analyze the text.AnalyzeRequestBuilder
setAttributes(java.lang.String... attributes)
Sets attributes that will include resultsAnalyzeRequestBuilder
setExplain(boolean explain)
Sets explainAnalyzeRequestBuilder
setField(java.lang.String field)
Sets the field that its analyzer will be used to analyze the text.AnalyzeRequestBuilder
setNormalizer(java.lang.String normalizer)
Instead of setting the analyzer and tokenizer, sets the normalizer as nameAnalyzeRequestBuilder
setText(java.lang.String... texts)
Sets texts to analyzeAnalyzeRequestBuilder
setTokenizer(java.lang.String tokenizer)
Instead of setting the analyzer, sets the tokenizer as name that will be used as part of a custom analyzer.AnalyzeRequestBuilder
setTokenizer(java.util.Map<java.lang.String,?> tokenizer)
Instead of setting the analyzer, sets the tokenizer using custom settings that will be used as part of a custom analyzer.Methods inherited from class org.elasticsearch.action.support.single.shard.SingleShardOperationRequestBuilder
setIndex
-
Constructor Details
-
AnalyzeRequestBuilder
-
AnalyzeRequestBuilder
public AnalyzeRequestBuilder(ElasticsearchClient client, AnalyzeAction action, java.lang.String index, java.lang.String... text)
-
-
Method Details
-
setAnalyzer
Sets the analyzer name to use in order to analyze the text.- Parameters:
analyzer
- The analyzer name.
-
setField
Sets the field that its analyzer will be used to analyze the text. Note, requires an index to be set. -
setTokenizer
Instead of setting the analyzer, sets the tokenizer as name that will be used as part of a custom analyzer. -
setTokenizer
Instead of setting the analyzer, sets the tokenizer using custom settings that will be used as part of a custom analyzer. -
addTokenFilter
Add token filter setting that will be used on top of a tokenizer provided. -
addTokenFilter
Add a name of token filter that will be used on top of a tokenizer provided. -
addCharFilter
Add char filter setting that will be used on top of a tokenizer provided. -
addCharFilter
Add a name of char filter that will be used before the tokenizer. -
setExplain
Sets explain -
setAttributes
Sets attributes that will include results -
setText
Sets texts to analyze -
setNormalizer
Instead of setting the analyzer and tokenizer, sets the normalizer as name
-