public class SearchResultHighlight extends com.ibm.cloud.sdk.core.service.model.DynamicModel<List<String>>
This type supports additional properties of type List<String>. An array of strings containing segments taken from a field in the search results that is not mapped to the `body`, `title`, or `url` property, with query-matching substrings highlighted. The property name is the name of the field in the Discovery collection.
Constructor and Description |
---|
SearchResultHighlight() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getBody()
Gets the body.
|
List<String> |
getTitle()
Gets the title.
|
List<String> |
getUrl()
Gets the url.
|
public List<String> getBody()
An array of strings containing segments taken from body text in the search results, with query-matching substrings highlighted.
public List<String> getTitle()
An array of strings containing segments taken from title text in the search results, with query-matching substrings highlighted.
Copyright © 2024 IBM Cloud. All rights reserved.