com.ibm.watson.assistant.v2.model

Class SearchResultHighlight

    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.util.List<java.lang.String> getBody()
      Gets the body.
      java.util.List<java.lang.String> getTitle()
      Gets the title.
      java.util.List<java.lang.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, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SearchResultHighlight

        public SearchResultHighlight()
    • Method Detail

      • getBody

        public java.util.List<java.lang.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 java.util.List<java.lang.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 java.util.List<java.lang.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