Package lumis.portal.bigdata.query
Interface ISearchHit
-
@StableMinor(version="14.0", sinceVersion="8.1") public interface ISearchHit
An item of aISearchResults
object. It represents an indexedinformation
that is matched by aquery
that wasexecuted
.- Since:
- 8.1.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Document
getDocument()
Returns theDocument
object related to the hit, containing all stored fields.Map<String,List<String>>
getHighlights()
Returns the highlight fragments, if any.double
getScore()
Returns the score of this search hit.
-
-
-
Method Detail
-
getScore
double getScore()
Returns the score of this search hit.- Returns:
- the score of this search hit.
- Since:
- 8.1.0
-
getDocument
Document getDocument()
Returns theDocument
object related to the hit, containing all stored fields.- Returns:
Document
object related to the hit.- Since:
- 8.1.0
-
getHighlights
Map<String,List<String>> getHighlights()
Returns the highlight fragments, if any. The key value is the identifier of each highlighted field.
If no highlight field wasspecified
inSearchQuery
, the result map will have one entry with an empty string as key and the value is the highlight fragments of text infields included in global search
.- Returns:
- the highlight fragments, if any.
- Since:
- 8.1.0
- See Also:
HighlightConfig.addHighlightFields(java.util.Collection)
-
-