Package org.apache.lucene.monitor
Class HighlightsMatch
java.lang.Object
org.apache.lucene.monitor.QueryMatch
org.apache.lucene.monitor.HighlightsMatch
QueryMatch object that contains the hit positions of a matching Query
If the Query does not support interval iteration (eg, if it gets re-written to a Filter), then no hits will be reported, but an IntervalsQueryMatch will still be returned from an IntervalsMatcher to indicate a match.
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.apache.lucene.monitor.QueryMatch
SIMPLE_MATCHER
-
Method Summary
Methods inherited from class org.apache.lucene.monitor.QueryMatch
getQueryId
-
Field Details
-
MATCHER
-
-
Method Details
-
getHits
- Returns:
- a map of hits per field
-
getFields
- Returns:
- the fields in which matches have been found
-
getHits
Get the hits for a specific field- Parameters:
field
- the field- Returns:
- the Hits found in this field
-
getHitCount
public int getHitCount()- Returns:
- the total number of hits for the query
-
equals
- Overrides:
equals
in classQueryMatch
-
hashCode
public int hashCode()- Overrides:
hashCode
in classQueryMatch
-
toString
- Overrides:
toString
in classQueryMatch
-