public class SearchSettingsDiscovery
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
SearchSettingsDiscovery.Builder
Builder.
|
Modifier and Type | Method and Description |
---|---|
SearchSettingsDiscoveryAuthentication |
authentication()
Gets the authentication.
|
Double |
confidenceThreshold()
Gets the confidenceThreshold.
|
Boolean |
findAnswers()
Gets the findAnswers.
|
Boolean |
highlight()
Gets the highlight.
|
String |
instanceId()
Gets the instanceId.
|
Long |
maxPrimaryResults()
Gets the maxPrimaryResults.
|
Long |
maxTotalResults()
Gets the maxTotalResults.
|
SearchSettingsDiscovery.Builder |
newBuilder()
New builder.
|
String |
projectId()
Gets the projectId.
|
String |
url()
Gets the url.
|
public SearchSettingsDiscovery.Builder newBuilder()
public String instanceId()
The ID for the Watson Discovery service instance.
public String projectId()
The ID for the Watson Discovery project.
public String url()
The URL for the Watson Discovery service instance.
public Long maxPrimaryResults()
The maximum number of primary results to include in the response.
public Long maxTotalResults()
The maximum total number of primary and additional results to include in the response.
public Double confidenceThreshold()
The minimum confidence threshold for included results. Any results with a confidence below this threshold will be discarded.
public Boolean highlight()
Whether to include the most relevant passages of text in the **highlight** property of each result.
public Boolean findAnswers()
Whether to use the answer finding feature to emphasize answers within highlighted passages. This property is ignored if **highlight**=`false`.
**Notes:** - Answer finding is available only if the search skill is connected to a Discovery v2 service instance. - Answer finding is not supported on IBM Cloud Pak for Data.
public SearchSettingsDiscoveryAuthentication authentication()
Authentication information for the Watson Discovery service. For more information, see the [Watson Discovery documentation](https://cloud.ibm.com/apidocs/discovery-data#authentication).
**Note:** You must specify either **basic** or **bearer**, but not both.
Copyright © 2023 IBM Cloud. All rights reserved.