类 TermVectorsRequest
java.lang.Object
org.easysearch.client.core.TermVectorsRequest
- 所有已实现的接口:
Validatable,org.easysearch.common.xcontent.ToXContent,org.easysearch.common.xcontent.ToXContentObject
public class TermVectorsRequest extends java.lang.Object implements org.easysearch.common.xcontent.ToXContentObject, Validatable
-
嵌套类概要
从接口继承的嵌套类/接口 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 -
构造器概要
构造器 构造器 说明 TermVectorsRequest(java.lang.String index, java.lang.String docId)Constructs TermVectorRequest for the given documentTermVectorsRequest(java.lang.String index, java.lang.String type, java.lang.String docId)已过时。TermVectorsRequest(java.lang.String index, java.lang.String type, org.easysearch.common.xcontent.XContentBuilder docBuilder)已过时。Types are in the process of being removed, useTermVectorsRequest(java.lang.String,org.easysearch.common.xcontent.XContentBuilder)instead.TermVectorsRequest(java.lang.String index, org.easysearch.common.xcontent.XContentBuilder docBuilder)Constructs TermVectorRequest for an artificial document -
方法概要
修饰符和类型 方法 说明 java.lang.String[]getFields()java.lang.StringgetId()Returns the id of the request can be NULL if there is no document IDjava.lang.StringgetIndex()Returns the index of the requestjava.lang.StringgetPreference()booleangetRealtime()Returns if the request is realtime(true) or near-realtime(false)java.lang.StringgetRouting()java.lang.StringgetType()已过时。Types are in the process of being removed.voidsetFields(java.lang.String... fields)Sets the fields for which term vectors information should be retrievedvoidsetFieldStatistics(boolean requestFieldStatistics)Sets whether to request field statisticsvoidsetFilterSettings(java.util.Map<java.lang.String,java.lang.Integer> filterSettings)Sets conditions for terms filteringvoidsetOffsets(boolean requestOffsets)Sets whether to request term offsetsvoidsetPayloads(boolean requestPayloads)Sets whether to request term payloadsvoidsetPerFieldAnalyzer(java.util.Map<java.lang.String,java.lang.String> perFieldAnalyzer)Sets different analyzers than the one at the fieldsvoidsetPositions(boolean requestPositions)Sets whether to request term positionsvoidsetPreference(java.lang.String preference)Set a preference of which shard copies to execute the requestvoidsetRealtime(boolean realtime)Sets if the request should be realtime or near-realtimevoidsetRouting(java.lang.String routing)Sets a routing to route a request to a particular shardvoidsetTermStatistics(boolean requestTermStatistics)Sets whether to request term statisticsorg.easysearch.common.xcontent.XContentBuildertoXContent(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params)从类继承的方法 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
-
构造器详细资料
-
TermVectorsRequest
public TermVectorsRequest(java.lang.String index, java.lang.String docId)Constructs TermVectorRequest for the given document- 参数:
index- - index of the documentdocId- - id of the document
-
TermVectorsRequest
@Deprecated public TermVectorsRequest(java.lang.String index, java.lang.String type, java.lang.String docId)已过时。Types are in the process of being removed, useTermVectorsRequest(String, String)instead.Constructs TermVectorRequest for the given document- 参数:
index- - index of the documenttype- - type of the documentdocId- - id of the document
-
TermVectorsRequest
public TermVectorsRequest(java.lang.String index, org.easysearch.common.xcontent.XContentBuilder docBuilder)Constructs TermVectorRequest for an artificial document- 参数:
index- - index of the documentdocBuilder- - an artificial document
-
TermVectorsRequest
@Deprecated public TermVectorsRequest(java.lang.String index, java.lang.String type, org.easysearch.common.xcontent.XContentBuilder docBuilder)已过时。Types are in the process of being removed, useTermVectorsRequest(java.lang.String,org.easysearch.common.xcontent.XContentBuilder)instead.Constructs TermVectorRequest for an artificial document- 参数:
index- - index of the documenttype- - type of the documentdocBuilder- - an artificial document
-
-
方法详细资料
-
getIndex
public java.lang.String getIndex()Returns the index of the request -
getType
@Deprecated public java.lang.String getType()已过时。Types are in the process of being removed.Returns the type of the request -
getId
public java.lang.String getId()Returns the id of the request can be NULL if there is no document ID -
setFields
public void setFields(java.lang.String... fields)Sets the fields for which term vectors information should be retrieved -
getFields
public java.lang.String[] getFields() -
setPositions
public void setPositions(boolean requestPositions)Sets whether to request term positions -
setPayloads
public void setPayloads(boolean requestPayloads)Sets whether to request term payloads -
setOffsets
public void setOffsets(boolean requestOffsets)Sets whether to request term offsets -
setFieldStatistics
public void setFieldStatistics(boolean requestFieldStatistics)Sets whether to request field statistics -
setTermStatistics
public void setTermStatistics(boolean requestTermStatistics)Sets whether to request term statistics -
setPerFieldAnalyzer
public void setPerFieldAnalyzer(java.util.Map<java.lang.String,java.lang.String> perFieldAnalyzer)Sets different analyzers than the one at the fields -
setFilterSettings
public void setFilterSettings(java.util.Map<java.lang.String,java.lang.Integer> filterSettings)Sets conditions for terms filtering -
setRouting
public void setRouting(java.lang.String routing)Sets a routing to route a request to a particular shard -
getRouting
public java.lang.String getRouting() -
setPreference
public void setPreference(java.lang.String preference)Set a preference of which shard copies to execute the request -
getPreference
public java.lang.String getPreference() -
setRealtime
public void setRealtime(boolean realtime)Sets if the request should be realtime or near-realtime -
getRealtime
public boolean getRealtime()Returns if the request is realtime(true) or near-realtime(false) -
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
-
TermVectorsRequest(String, String)instead.