Class QueryMatch

java.lang.Object
org.apache.lucene.monitor.QueryMatch
Direct Known Subclasses:
ExplainingMatch, HighlightsMatch, ScoringMatch

public class QueryMatch extends Object
Represents a match for a specific query and document

Derived classes may contain more information (such as scores, highlights, etc)

See Also:
  • Field Details

  • Constructor Details

    • QueryMatch

      public QueryMatch(String queryId)
      Creates a new QueryMatch for a specific query and document
      Parameters:
      queryId - the query id
  • Method Details

    • getQueryId

      public String getQueryId()
      Returns:
      the queryid of this match
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object