Package org.elasticsearch.client.core
Class TermVectorsResponse
java.lang.Object
org.elasticsearch.client.core.TermVectorsResponse
public class TermVectorsResponse
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTermVectorsResponse.TermVector -
Constructor Summary
Constructors Constructor Description TermVectorsResponse(java.lang.String index, java.lang.String type, java.lang.String id, long version, boolean found, long tookInMillis, java.util.List<TermVectorsResponse.TermVector> termVectorList) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)static TermVectorsResponsefromXContent(XContentParser parser)longgetDocVersion()Returns the document versionbooleangetFound()Returns if the document is found alwaystruefor artificial documentsjava.lang.StringgetId()Returns the id of the request can be NULL if there is no document IDjava.lang.StringgetIndex()Returns the index for the responsejava.util.List<TermVectorsResponse.TermVector>getTermVectorsList()Returns the list of term vectorslonggetTookInMillis()Returns the time that a request took in millisecondsjava.lang.StringgetType()Deprecated.Types are in the process of being removed.inthashCode()
-
Constructor Details
-
TermVectorsResponse
public TermVectorsResponse(java.lang.String index, java.lang.String type, java.lang.String id, long version, boolean found, long tookInMillis, java.util.List<TermVectorsResponse.TermVector> termVectorList)
-
-
Method Details
-
fromXContent
-
getIndex
public java.lang.String getIndex()Returns the index for the response -
getType
@Deprecated public java.lang.String getType()Deprecated.Types are in the process of being removed.Returns the type for the response -
getId
public java.lang.String 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
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-