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 Summary
Constructors Constructor Description SearchResultMetadata()
-
Method Summary
Modifier and Type Method Description Double
getConfidence()
Gets the confidence.Double
getScore()
Gets the score.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Constructor Details
-
SearchResultMetadata
public SearchResultMetadata()
-
-
Method Details
-
getConfidence
Gets the confidence.The confidence score for the given result, as returned by the Discovery service.
- Returns:
- the confidence
-
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
-