Package org.elasticsearch.client.core
Class TermVectorsResponse.TermVector.Term
java.lang.Object
org.elasticsearch.client.core.TermVectorsResponse.TermVector.Term
- Enclosing class:
- TermVectorsResponse.TermVector
public static final class TermVectorsResponse.TermVector.Term
extends java.lang.Object
-
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 booleanequals(java.lang.Object obj)static TermVectorsResponse.TermVector.TermfromXContent(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String term)java.lang.IntegergetDocFreq()Returns document frequency - the number of documents in the index that contain this termjava.lang.FloatgetScore()Returns tf-idf score, if the request used some form of terms filteringjava.lang.StringgetTerm()Returns the string representation of the termintgetTermFreq()Returns term frequency - the number of times this term occurs in the current documentjava.util.List<TermVectorsResponse.TermVector.Token>getTokens()Returns a list of tokens for the termjava.lang.LonggetTotalTermFreq()Returns total term frequency - the number of times this term occurs across all documentsinthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
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 Details
-
fromXContent
public static TermVectorsResponse.TermVector.Term fromXContent(org.elasticsearch.common.xcontent.XContentParser parser, java.lang.String term) -
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 -
getTokens
Returns a list of tokens for the term -
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-