com.ibm.watson.assistant.v2.model

Class SearchResultHighlight

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected java.util.List<java.lang.String> body 
      protected java.util.List<java.lang.String> title 
      protected java.util.List<java.lang.String> url 
    • 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
    • Field Detail

      • body

        @SerializedName(value="body")
        protected java.util.List<java.lang.String> body
      • title

        @SerializedName(value="title")
        protected java.util.List<java.lang.String> title
      • url

        @SerializedName(value="url")
        protected java.util.List<java.lang.String> url
    • 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