Package com.algolia.model.search
Class HighlightResultOption
java.lang.Object
com.algolia.model.search.HighlightResultOption
Show highlighted section and words matched on a query.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMatchedWords(String matchedWordsItem) booleanWhether the entire attribute value is highlighted.List of words from the query that matched the object.Get matchLevelgetValue()Markup text with `facetQuery` matches highlighted.inthashCode()setFullyHighlighted(Boolean fullyHighlighted) setMatchedWords(List<String> matchedWords) setMatchLevel(MatchLevel matchLevel) toString()
-
Constructor Details
-
HighlightResultOption
public HighlightResultOption()
-
-
Method Details
-
setValue
-
getValue
Markup text with `facetQuery` matches highlighted.- Returns:
- value
-
setMatchLevel
-
getMatchLevel
Get matchLevel- Returns:
- matchLevel
-
setMatchedWords
-
addMatchedWords
-
getMatchedWords
List of words from the query that matched the object.- Returns:
- matchedWords
-
setFullyHighlighted
-
getFullyHighlighted
Whether the entire attribute value is highlighted.- Returns:
- fullyHighlighted
-
equals
-
hashCode
public int hashCode() -
toString
-