Package com.algolia.model.search
Class Hit
java.lang.Object
com.algolia.model.search.Hit
Search result. A hit is a record from your index, augmented with special attributes for
highlighting, snippeting, and ranking.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Get distinctSeqIDSurround words that match the query with HTML tags for highlighting.Unique record identifier.Get rankingInfoSnippets that show the context around a matching search query.int
hashCode()
putHighlightResult
(String key, HighlightResult highlightResultItem) putSnippetResult
(String key, SnippetResult snippetResultItem) setAdditionalProperty
(String name, Object value) setDistinctSeqID
(Integer distinctSeqID) setHighlightResult
(Map<String, HighlightResult> highlightResult) setObjectID
(String objectID) setRankingInfo
(RankingInfo rankingInfo) setSnippetResult
(Map<String, SnippetResult> snippetResult) toString()
-
Constructor Details
-
Hit
public Hit()
-
-
Method Details
-
getAdditionalProperties
-
setAdditionalProperty
-
setObjectID
-
getObjectID
Unique record identifier. -
setHighlightResult
-
putHighlightResult
-
getHighlightResult
Surround words that match the query with HTML tags for highlighting. -
setSnippetResult
-
putSnippetResult
-
getSnippetResult
Snippets that show the context around a matching search query. -
setRankingInfo
-
getRankingInfo
Get rankingInfo -
setDistinctSeqID
-
getDistinctSeqID
Get distinctSeqID -
equals
-
hashCode
public int hashCode() -
toString
-