public class AnalyzeRequestBuilder extends SingleShardOperationRequestBuilder<AnalyzeRequest,AnalyzeResponse,AnalyzeRequestBuilder>
action, client, request
Constructor and Description |
---|
AnalyzeRequestBuilder(ElasticsearchClient client,
AnalyzeAction action) |
AnalyzeRequestBuilder(ElasticsearchClient client,
AnalyzeAction action,
java.lang.String index,
java.lang.String... text) |
Modifier and Type | Method and Description |
---|---|
AnalyzeRequestBuilder |
addCharFilter(java.util.Map<java.lang.String,?> charFilter)
Add char filter setting that will be used on top of a tokenizer provided.
|
AnalyzeRequestBuilder |
addCharFilter(java.lang.String tokenFilter)
Add a name of char filter that will be used before the tokenizer.
|
AnalyzeRequestBuilder |
addTokenFilter(java.util.Map<java.lang.String,?> tokenFilter)
Add token 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 |
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 results
|
AnalyzeRequestBuilder |
setExplain(boolean explain)
Sets explain
|
AnalyzeRequestBuilder |
setField(java.lang.String field)
Sets the field that its analyzer will be used to analyze the text.
|
AnalyzeRequestBuilder |
setText(java.lang.String... texts)
Sets texts to analyze
|
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.
|
AnalyzeRequestBuilder |
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.
|
setIndex, setOperationThreaded
beforeExecute, execute, execute, get, get, get, request
public AnalyzeRequestBuilder(ElasticsearchClient client, AnalyzeAction action)
public AnalyzeRequestBuilder(ElasticsearchClient client, AnalyzeAction action, java.lang.String index, java.lang.String... text)
public AnalyzeRequestBuilder setAnalyzer(java.lang.String analyzer)
analyzer
- The analyzer name.public AnalyzeRequestBuilder setField(java.lang.String field)
public AnalyzeRequestBuilder setTokenizer(java.lang.String tokenizer)
public AnalyzeRequestBuilder setTokenizer(java.util.Map<java.lang.String,?> tokenizer)
public AnalyzeRequestBuilder addTokenFilter(java.util.Map<java.lang.String,?> tokenFilter)
public AnalyzeRequestBuilder addTokenFilter(java.lang.String tokenFilter)
public AnalyzeRequestBuilder addCharFilter(java.util.Map<java.lang.String,?> charFilter)
public AnalyzeRequestBuilder addCharFilter(java.lang.String tokenFilter)
public AnalyzeRequestBuilder setExplain(boolean explain)
public AnalyzeRequestBuilder setAttributes(java.lang.String... attributes)
public AnalyzeRequestBuilder setText(java.lang.String... texts)