Class QueryResultMetadata
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.QueryResultMetadata
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class QueryResultMetadata
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Metadata of a query result.
-
Constructor Summary
Constructors Constructor Description QueryResultMetadata()
-
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
-
QueryResultMetadata
public QueryResultMetadata()
-
-
Method Details
-
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
-
getConfidence
Gets the confidence.The confidence score for the given result. Calculated based on how relevant the result is estimated to be. confidence can range from `0.0` to `1.0`. The higher the number, the more relevant the document. The `confidence` value for a result was calculated using the model specified in the `document_retrieval_strategy` field of the result set.
- Returns:
- the confidence
-