类 AnalyzeRequest
java.lang.Object
org.easysearch.client.indices.AnalyzeRequest
- 所有已实现的接口:
Validatable,org.easysearch.common.xcontent.ToXContent,org.easysearch.common.xcontent.ToXContentObject
public class AnalyzeRequest extends java.lang.Object implements Validatable, org.easysearch.common.xcontent.ToXContentObject
A request to analyze text
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classAnalyzeRequest.CustomAnalyzerBuilderHelper class to build custom analyzer definitions从接口继承的嵌套类/接口 org.easysearch.common.xcontent.ToXContent
org.easysearch.common.xcontent.ToXContent.DelegatingMapParams, org.easysearch.common.xcontent.ToXContent.MapParams, org.easysearch.common.xcontent.ToXContent.Params -
字段概要
从接口继承的字段 org.easysearch.common.xcontent.ToXContent
EMPTY_PARAMS从接口继承的字段 org.easysearch.client.Validatable
EMPTY -
方法概要
修饰符和类型 方法 说明 java.lang.Stringanalyzer()Returns the named analyzer used for analysis, if definedjava.lang.String[]attributes()AnalyzeRequestattributes(java.lang.String... attributes)static AnalyzeRequest.CustomAnalyzerBuilderbuildCustomAnalyzer(java.lang.String tokenizer)Analyzes text using a custom analyzer built from global componentsstatic AnalyzeRequest.CustomAnalyzerBuilderbuildCustomAnalyzer(java.lang.String index, java.lang.String tokenizer)Analyzes text using a custom analyzer built from components defined on an indexstatic AnalyzeRequest.CustomAnalyzerBuilderbuildCustomAnalyzer(java.lang.String index, java.util.Map<java.lang.String,java.lang.Object> tokenizerSettings)Analyzes text using a custom analyzer built from components defined on an indexstatic AnalyzeRequest.CustomAnalyzerBuilderbuildCustomAnalyzer(java.util.Map<java.lang.String,java.lang.Object> tokenizerSettings)Analyzes text using a custom analyzer built from global componentsstatic AnalyzeRequest.CustomAnalyzerBuilderbuildCustomNormalizer()Analyzes text using a custom normalizer built from global componentsstatic AnalyzeRequest.CustomAnalyzerBuilderbuildCustomNormalizer(java.lang.String index)Analyzes text using a custom normalizer built from components defined on an indexjava.util.List<org.easysearch.client.indices.AnalyzeRequest.NameOrDefinition>charFilters()Returns the custom character filters used for analysis, if definedbooleanexplain()AnalyzeRequestexplain(boolean explain)Set whether or not detailed explanations of analysis should be returnedjava.lang.Stringfield()Returns the field to take an Analyzer from, if definedjava.lang.Stringindex()Returns the index that the request should be executed against, ornullif no index is specifiedjava.lang.Stringnormalizer()Returns the named tokenizer used for analysis, if definedjava.lang.String[]text()Returns the text to be analyzedjava.util.List<org.easysearch.client.indices.AnalyzeRequest.NameOrDefinition>tokenFilters()Returns the custom token filters used for analysis, if definedorg.easysearch.client.indices.AnalyzeRequest.NameOrDefinitiontokenizer()Returns a custom Tokenizer used for analysis, if definedorg.easysearch.common.xcontent.XContentBuildertoXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)static AnalyzeRequestwithField(java.lang.String index, java.lang.String field, java.lang.String... text)Analyzes text using the analyzer defined on a specific field within an indexstatic AnalyzeRequestwithGlobalAnalyzer(java.lang.String analyzer, java.lang.String... text)Analyzes text using a global analyzerstatic AnalyzeRequestwithIndexAnalyzer(java.lang.String index, java.lang.String analyzer, java.lang.String... text)Analyzes text using a named analyzer on an indexstatic AnalyzeRequestwithNormalizer(java.lang.String index, java.lang.String normalizer, java.lang.String... text)Analyzes text using a named normalizer on an index从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 org.easysearch.common.xcontent.ToXContentObject
isFragment从接口继承的方法 org.easysearch.client.Validatable
validate
-
方法详细资料
-
withGlobalAnalyzer
public static AnalyzeRequest withGlobalAnalyzer(java.lang.String analyzer, java.lang.String... text)Analyzes text using a global analyzer -
buildCustomAnalyzer
Analyzes text using a custom analyzer built from global components -
buildCustomAnalyzer
public static AnalyzeRequest.CustomAnalyzerBuilder buildCustomAnalyzer(java.util.Map<java.lang.String,java.lang.Object> tokenizerSettings)Analyzes text using a custom analyzer built from global components -
buildCustomAnalyzer
public static AnalyzeRequest.CustomAnalyzerBuilder buildCustomAnalyzer(java.lang.String index, java.lang.String tokenizer)Analyzes text using a custom analyzer built from components defined on an index -
buildCustomAnalyzer
public static AnalyzeRequest.CustomAnalyzerBuilder buildCustomAnalyzer(java.lang.String index, java.util.Map<java.lang.String,java.lang.Object> tokenizerSettings)Analyzes text using a custom analyzer built from components defined on an index -
withIndexAnalyzer
public static AnalyzeRequest withIndexAnalyzer(java.lang.String index, java.lang.String analyzer, java.lang.String... text)Analyzes text using a named analyzer on an index -
withField
public static AnalyzeRequest withField(java.lang.String index, java.lang.String field, java.lang.String... text)Analyzes text using the analyzer defined on a specific field within an index -
withNormalizer
public static AnalyzeRequest withNormalizer(java.lang.String index, java.lang.String normalizer, java.lang.String... text)Analyzes text using a named normalizer on an index -
buildCustomNormalizer
Analyzes text using a custom normalizer built from global components -
buildCustomNormalizer
Analyzes text using a custom normalizer built from components defined on an index -
index
public java.lang.String index()Returns the index that the request should be executed against, ornullif no index is specified -
text
public java.lang.String[] text()Returns the text to be analyzed -
analyzer
public java.lang.String analyzer()Returns the named analyzer used for analysis, if defined -
normalizer
public java.lang.String normalizer()Returns the named tokenizer used for analysis, if defined -
tokenizer
public org.easysearch.client.indices.AnalyzeRequest.NameOrDefinition tokenizer()Returns a custom Tokenizer used for analysis, if defined -
tokenFilters
public java.util.List<org.easysearch.client.indices.AnalyzeRequest.NameOrDefinition> tokenFilters()Returns the custom token filters used for analysis, if defined -
charFilters
public java.util.List<org.easysearch.client.indices.AnalyzeRequest.NameOrDefinition> charFilters()Returns the custom character filters used for analysis, if defined -
field
public java.lang.String field()Returns the field to take an Analyzer from, if defined -
explain
Set whether or not detailed explanations of analysis should be returned -
explain
public boolean explain() -
attributes
-
attributes
public java.lang.String[] attributes() -
toXContent
public org.easysearch.common.xcontent.XContentBuilder toXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- 指定者:
toXContent在接口中org.easysearch.common.xcontent.ToXContent- 抛出:
java.io.IOException
-