Package lumis.portal.bigdata.query
Interface ISearchHit
-
@StableMinor(version="17.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$ $Date$
-
-
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.java.util.Map<java.lang.String,java.util.List<java.lang.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
java.util.Map<java.lang.String,java.util.List<java.lang.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)
-
-