Package com.algolia.model.recommend
Class HighlightResultOption
java.lang.Object
com.algolia.model.recommend.HighlightResultOption
- All Implemented Interfaces:
HighlightResult
Surround words that match the query with HTML tags for highlighting.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.algolia.model.recommend.HighlightResult
HighlightResult.Deserializer, HighlightResult.ListOfHighlightResultOptionWrapper, HighlightResult.MapOfStringHighlightResultOptionWrapper, HighlightResult.MapOfStringHighlightResultWrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMatchedWords
(String matchedWordsItem) boolean
Whether the entire attribute value is highlighted.List of matched words from the search query.Get matchLevelgetValue()
Highlighted attribute value, including HTML tags.int
hashCode()
setFullyHighlighted
(Boolean fullyHighlighted) setMatchedWords
(List<String> matchedWords) setMatchLevel
(MatchLevel matchLevel) toString()
-
Constructor Details
-
HighlightResultOption
public HighlightResultOption()
-
-
Method Details
-
setValue
-
getValue
Highlighted attribute value, including HTML tags. -
setMatchLevel
-
getMatchLevel
Get matchLevel -
setMatchedWords
-
addMatchedWords
-
getMatchedWords
List of matched words from the search query. -
setFullyHighlighted
-
getFullyHighlighted
Whether the entire attribute value is highlighted. -
equals
-
hashCode
public int hashCode() -
toString
-