Class SearchResultMetadata

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.assistant.v2.model.SearchResultMetadata
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class SearchResultMetadata
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An object containing search result metadata from the Discovery service.
  • Constructor Details

    • SearchResultMetadata

      public SearchResultMetadata()
  • Method Details

    • getConfidence

      public Double getConfidence()
      Gets the confidence.

      The confidence score for the given result, as returned by the Discovery service.

      Returns:
      the confidence
    • getScore

      public Double getScore()
      Gets the score.

      An unbounded measure of the relevance of a particular result, dependent on the query and matching document. A higher score indicates a greater match to the query parameters.

      Returns:
      the score