Class TermVectorsResponse


  • public class TermVectorsResponse
    extends java.lang.Object
    • 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
      boolean equals​(java.lang.Object obj)  
      static TermVectorsResponse fromXContent​(XContentParser parser)  
      long getDocVersion()
      Returns the document version
      boolean getFound()
      Returns if the document is found always true for artificial documents
      java.lang.String getId()
      Returns the id of the request can be NULL if there is no document ID
      java.lang.String getIndex()
      Returns the index for the response
      java.util.List<TermVectorsResponse.TermVector> getTermVectorsList()
      Returns the list of term vectors
      long getTookInMillis()
      Returns the time that a request took in milliseconds
      java.lang.String getType()
      Returns the type for the response
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 Detail

      • getIndex

        public java.lang.String getIndex()
        Returns the index for the response
      • getType

        public java.lang.String getType()
        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 always true for artificial documents
      • getDocVersion

        public long getDocVersion()
        Returns the document version
      • getTookInMillis

        public long getTookInMillis()
        Returns the time that a request took in milliseconds
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object