Class TermVectorsResponse.TermVector.Term

    • Constructor Summary

      Constructors 
      Constructor Description
      Term​(java.lang.String term, int termFreq, java.lang.Integer docFreq, java.lang.Long totalTermFreq, java.lang.Float score, java.util.List<TermVectorsResponse.TermVector.Token> tokens)  
    • Method Summary

      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      static TermVectorsResponse.TermVector.Term fromXContent​(XContentParser parser, java.lang.String term)  
      java.lang.Integer getDocFreq()
      Returns document frequency - the number of documents in the index that contain this term
      java.lang.Float getScore()
      Returns tf-idf score, if the request used some form of terms filtering
      java.lang.String getTerm()
      Returns the string representation of the term
      int getTermFreq()
      Returns term frequency - the number of times this term occurs in the current document
      java.util.List<TermVectorsResponse.TermVector.Token> getTokens()
      Returns a list of tokens for the term
      java.lang.Long getTotalTermFreq()
      Returns total term frequency - the number of times this term occurs across all documents
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • Term

        public Term​(java.lang.String term,
                    int termFreq,
                    java.lang.Integer docFreq,
                    java.lang.Long totalTermFreq,
                    java.lang.Float score,
                    java.util.List<TermVectorsResponse.TermVector.Token> tokens)
    • Method Detail

      • getTerm

        public java.lang.String getTerm()
        Returns the string representation of the term
      • getTermFreq

        public int getTermFreq()
        Returns term frequency - the number of times this term occurs in the current document
      • getDocFreq

        public java.lang.Integer getDocFreq()
        Returns document frequency - the number of documents in the index that contain this term
      • getTotalTermFreq

        public java.lang.Long getTotalTermFreq()
        Returns total term frequency - the number of times this term occurs across all documents
      • getScore

        public java.lang.Float getScore()
        Returns tf-idf score, if the request used some form of terms filtering
      • 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