Package org.opensearch.client.core
Class TermVectorsRequest
java.lang.Object
org.opensearch.client.core.TermVectorsRequest
- All Implemented Interfaces:
Validatable,org.opensearch.common.xcontent.ToXContent,org.opensearch.common.xcontent.ToXContentObject
public class TermVectorsRequest
extends Object
implements org.opensearch.common.xcontent.ToXContentObject, Validatable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
org.opensearch.common.xcontent.ToXContent.DelegatingMapParams, org.opensearch.common.xcontent.ToXContent.MapParams, org.opensearch.common.xcontent.ToXContent.Params -
Field Summary
Fields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMSFields inherited from interface org.opensearch.client.Validatable
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionTermVectorsRequest(String index, String docId) Constructs TermVectorRequest for the given documentTermVectorsRequest(String index, String type, String docId) Deprecated.TermVectorsRequest(String index, String type, org.opensearch.common.xcontent.XContentBuilder docBuilder) Deprecated.Types are in the process of being removed, useTermVectorsRequest(java.lang.String,org.opensearch.common.xcontent.XContentBuilder)instead.TermVectorsRequest(String index, org.opensearch.common.xcontent.XContentBuilder docBuilder) Constructs TermVectorRequest for an artificial document -
Method Summary
Modifier and TypeMethodDescriptionString[]getId()Returns the id of the request can be NULL if there is no document IDgetIndex()Returns the index of the requestbooleanReturns if the request is realtime(true) or near-realtime(false)getType()Deprecated.Types are in the process of being removed.voidSets the fields for which term vectors information should be retrievedvoidsetFieldStatistics(boolean requestFieldStatistics) Sets whether to request field statisticsvoidsetFilterSettings(Map<String, Integer> filterSettings) Sets conditions for terms filteringvoidsetOffsets(boolean requestOffsets) Sets whether to request term offsetsvoidsetPayloads(boolean requestPayloads) Sets whether to request term payloadsvoidsetPerFieldAnalyzer(Map<String, String> perFieldAnalyzer) Sets different analyzers than the one at the fieldsvoidsetPositions(boolean requestPositions) Sets whether to request term positionsvoidsetPreference(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(String routing) Sets a routing to route a request to a particular shardvoidsetTermStatistics(boolean requestTermStatistics) Sets whether to request term statisticsorg.opensearch.common.xcontent.XContentBuildertoXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.common.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.opensearch.client.Validatable
validate
-
Constructor Details
-
TermVectorsRequest
Constructs TermVectorRequest for the given document- Parameters:
index- - index of the documentdocId- - id of the document
-
TermVectorsRequest
Deprecated.Types are in the process of being removed, useTermVectorsRequest(String, String)instead.Constructs TermVectorRequest for the given document- Parameters:
index- - index of the documenttype- - type of the documentdocId- - id of the document
-
TermVectorsRequest
Constructs TermVectorRequest for an artificial document- Parameters:
index- - index of the documentdocBuilder- - an artificial document
-
TermVectorsRequest
@Deprecated public TermVectorsRequest(String index, String type, org.opensearch.common.xcontent.XContentBuilder docBuilder) Deprecated.Types are in the process of being removed, useTermVectorsRequest(java.lang.String,org.opensearch.common.xcontent.XContentBuilder)instead.Constructs TermVectorRequest for an artificial document- Parameters:
index- - index of the documenttype- - type of the documentdocBuilder- - an artificial document
-
-
Method Details
-
getIndex
Returns the index of the request -
getType
Deprecated.Types are in the process of being removed.Returns the type of the request -
getId
Returns the id of the request can be NULL if there is no document ID -
setFields
Sets the fields for which term vectors information should be retrieved -
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
Sets different analyzers than the one at the fields -
setFilterSettings
Sets conditions for terms filtering -
setRouting
Sets a routing to route a request to a particular shard -
getRouting
-
setPreference
Set a preference of which shard copies to execute the request -
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.opensearch.common.xcontent.XContentBuilder toXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.common.xcontent.ToXContent- Throws:
IOException
-
TermVectorsRequest(String, String)instead.