Class SearchResultHighlight
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class SearchResultHighlight extends com.ibm.cloud.sdk.core.service.model.DynamicModel<List<String>>
An object containing segments of text from search results with query-matching text highlighted
using HTML `<em>` tags.
-
Constructor Summary
Constructors Constructor Description SearchResultHighlight()
-
Method Summary
Methods inherited from class com.ibm.cloud.sdk.core.service.model.DynamicModel
equals, get, getAdditionalPropertyTypeToken, getProperties, getPropertyNames, hashCode, put, removeProperties, removeProperty, setProperties, toString
-
Constructor Details
-
SearchResultHighlight
public SearchResultHighlight()
-
-
Method Details
-
getBody
Gets the body.An array of strings containing segments taken from body text in the search results, with query-matching substrings highlighted.
- Returns:
- the body
-
getTitle
Gets the title.An array of strings containing segments taken from title text in the search results, with query-matching substrings highlighted.
- Returns:
- the title
-
getUrl
Gets the url.An array of strings containing segments taken from URLs in the search results, with query-matching substrings highlighted.
- Returns:
- the url
-