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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
<String, Set<HighlightsMatch.Hit>> static final MatcherFactory
<HighlightsMatch> Fields inherited from class org.apache.lucene.monitor.QueryMatch
SIMPLE_MATCHER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
boolean
int
getHits()
Get the hits for a specific fieldint
hashCode()
(package private) static HighlightsMatch
merge
(String queryId, HighlightsMatch... matches) toString()
Methods inherited from class org.apache.lucene.monitor.QueryMatch
getQueryId
-
Field Details
-
MATCHER
-
hits
-
-
Constructor Details
-
HighlightsMatch
HighlightsMatch(String queryId)
-
-
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
-
merge
-
equals
- Overrides:
equals
in classQueryMatch
-
hashCode
public int hashCode()- Overrides:
hashCode
in classQueryMatch
-
toString
- Overrides:
toString
in classQueryMatch
-
addHit
-