Package com.algolia.model.search
Class HighlightResultOption
java.lang.Object
com.algolia.model.search.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.search.HighlightResult
HighlightResult.Deserializer, HighlightResult.ListOfHighlightResultWrapper, HighlightResult.MapOfStringHighlightResultWrapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMatchedWords(String matchedWordsItem) booleanWhether the entire attribute value is highlighted.List of matched words from the search query.Get matchLevelgetValue()Highlighted attribute value, including HTML tags.inthashCode()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
-