Package org.opensearch.client.core
Class TermVectorsResponse
java.lang.Object
org.opensearch.client.core.TermVectorsResponse
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTermVectorsResponse(String index, String id, long version, boolean found, long tookInMillis, List<TermVectorsResponse.TermVector> termVectorList) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic TermVectorsResponsefromXContent(org.opensearch.core.xcontent.XContentParser parser) longReturns the document versionbooleangetFound()Returns if the document is found alwaystruefor artificial documentsgetId()Returns the id of the request can be NULL if there is no document IDgetIndex()Returns the index for the responseReturns the list of term vectorslongReturns the time that a request took in millisecondsinthashCode()
-
Constructor Details
-
TermVectorsResponse
public TermVectorsResponse(String index, String id, long version, boolean found, long tookInMillis, List<TermVectorsResponse.TermVector> termVectorList)
-
-
Method Details
-
fromXContent
-
getIndex
Returns the index for the response -
getId
Returns the id of the request can be NULL if there is no document ID -
getFound
public boolean getFound()Returns if the document is found alwaystruefor artificial documents -
getDocVersion
public long getDocVersion()Returns the document version -
getTookInMillis
public long getTookInMillis()Returns the time that a request took in milliseconds -
getTermVectorsList
Returns the list of term vectors -
equals
-
hashCode
public int hashCode()
-