Module org.elasticsearch.server
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 SummaryFields inherited from class org.elasticsearch.action.ActionRequestBuilderaction, client, request
- 
Constructor SummaryConstructorsConstructorDescriptionAnalyzeRequestBuilder(ElasticsearchClient client, AnalyzeAction action) AnalyzeRequestBuilder(ElasticsearchClient client, AnalyzeAction action, String index, String... text) 
- 
Method SummaryModifier 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.SingleShardOperationRequestBuildersetIndex
- 
Constructor Details- 
AnalyzeRequestBuilder
- 
AnalyzeRequestBuilderpublic AnalyzeRequestBuilder(ElasticsearchClient client, AnalyzeAction action, String index, String... text) 
 
- 
- 
Method Details- 
setAnalyzerSets the analyzer name to use in order to analyze the text.- Parameters:
- analyzer- The analyzer name.
 
- 
setFieldSets the field that its analyzer will be used to analyze the text. Note, requires an index to be set.
- 
setTokenizerInstead of setting the analyzer, sets the tokenizer as name that will be used as part of a custom analyzer.
- 
setTokenizerInstead of setting the analyzer, sets the tokenizer using custom settings that will be used as part of a custom analyzer.
- 
addTokenFilterAdd token filter setting that will be used on top of a tokenizer provided.
- 
addTokenFilterAdd a name of token filter that will be used on top of a tokenizer provided.
- 
addCharFilterAdd char filter setting that will be used on top of a tokenizer provided.
- 
addCharFilterAdd a name of char filter that will be used before the tokenizer.
- 
setExplainSets explain
- 
setAttributesSets attributes that will include results
- 
setTextSets texts to analyze
- 
setNormalizerInstead of setting the analyzer and tokenizer, sets the normalizer as name
 
-