public class HighlightsMatch extends QueryMatch
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.
Modifier and Type | Class and Description |
---|---|
static class |
HighlightsMatch.Hit
Represents an individual hit
|
Modifier and Type | Field and Description |
---|---|
static MatcherFactory<HighlightsMatch> |
MATCHER |
SIMPLE_MATCHER
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Set<String> |
getFields() |
int |
getHitCount() |
Map<String,Set<HighlightsMatch.Hit>> |
getHits() |
Collection<HighlightsMatch.Hit> |
getHits(String field)
Get the hits for a specific field
|
int |
hashCode() |
String |
toString() |
getQueryId
public static final MatcherFactory<HighlightsMatch> MATCHER
public Map<String,Set<HighlightsMatch.Hit>> getHits()
public Collection<HighlightsMatch.Hit> getHits(String field)
field
- the fieldpublic int getHitCount()
public boolean equals(Object o)
equals
in class QueryMatch
public int hashCode()
hashCode
in class QueryMatch
public String toString()
toString
in class QueryMatch
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.