Class TermVectorsResponse.TermVector.Term

    • 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