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
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request
-
Constructor Summary
ConstructorDescriptionAnalyzeRequestBuilder(ElasticsearchClient client, AnalyzeAction action)
AnalyzeRequestBuilder(ElasticsearchClient client, AnalyzeAction action, String index, String... text)
-
Method Summary
Modifier and TypeMethodDescriptionaddCharFilter(String tokenFilter)
Add a name of char filter that will be used before the tokenizer.addCharFilter(Map<String,?> charFilter)
Add char filter setting that will be used on top of a tokenizer provided.addTokenFilter(String tokenFilter)
Add a name of token filter that will be used on top of a tokenizer provided.addTokenFilter(Map<String,?> tokenFilter)
Add token filter setting that will be used on top of a tokenizer provided.setAnalyzer(String analyzer)
Sets the analyzer name to use in order to analyze the text.setAttributes(String... attributes)
Sets attributes that will include resultssetExplain(boolean explain)
Sets explainSets the field that its analyzer will be used to analyze the text.setNormalizer(String normalizer)
Instead of setting the analyzer and tokenizer, sets the normalizer as nameSets texts to analyzesetTokenizer(String tokenizer)
Instead of setting the analyzer, sets the tokenizer as name that will be used as part of a custom analyzer.setTokenizer(Map<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, String index, 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
-