Class SearchResultHighlight

java.lang.Object
com.ibm.cloud.sdk.core.service.model.DynamicModel<List<String>>
com.ibm.watson.assistant.v2.model.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

    Modifier and Type Method Description
    List<String> getBody()
    Gets the body.
    List<String> getTitle()
    Gets the title.
    List<String> getUrl()
    Gets the url.

    Methods inherited from class com.ibm.cloud.sdk.core.service.model.DynamicModel

    equals, get, getAdditionalPropertyTypeToken, getProperties, getPropertyNames, hashCode, put, removeProperties, removeProperty, setProperties, toString

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SearchResultHighlight

      public SearchResultHighlight()
  • Method Details

    • getBody

      public List<String> 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

      public List<String> 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

      public List<String> 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