public class QueryMatch
extends java.lang.Object
Derived classes may contain more information (such as scores, highlights, etc)
ExplainingMatch
,
ScoringMatch
,
HighlightsMatch
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
queryId |
static MatcherFactory<QueryMatch> |
SIMPLE_MATCHER |
Constructor and Description |
---|
QueryMatch(java.lang.String queryId)
Creates a new QueryMatch for a specific query and document
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getQueryId() |
int |
hashCode() |
java.lang.String |
toString() |
private final java.lang.String queryId
public static final MatcherFactory<QueryMatch> SIMPLE_MATCHER
public QueryMatch(java.lang.String queryId)
queryId
- the query idpublic java.lang.String getQueryId()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object