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 Object
  • Constructor Details

  • Method Details

    • fromXContent

      public static TermVectorsResponse.TermVector.Term fromXContent(org.elasticsearch.xcontent.XContentParser parser, String term)
    • getTerm

      public 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 Integer getDocFreq()
      Returns document frequency - the number of documents in the index that contain this term
    • getTotalTermFreq

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

      public 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(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object