IBM Watson Discovery
Search an IBM Watson Discovery project with natural language queries and manage its collections and documents.
What’s inside
-
IBM Watson Discovery component, URI syntax:
ibm-watson-discovery:label
Please refer to the above links for usage and configuration details.
Maven coordinates
<dependency>
<groupId>org.apache.camel.springboot</groupId>
<artifactId>camel-ibm-watson-discovery-starter</artifactId>
</dependency> Spring Boot Auto-Configuration
The starter supports 10 options, which are listed below.
| Name | Description | Default | Type |
|---|---|---|---|
camel.component.ibm-watson-discovery.api-key | The IBM Cloud API key to authenticate with. The IamAuthenticator of the IBM Cloud SDK exchanges it for an IAM access token. Starting the endpoint fails without it. | String | |
camel.component.ibm-watson-discovery.autowired-enabled | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | Boolean |
camel.component.ibm-watson-discovery.collection-id | The ID of the collection to act on, used when the CamelIBMWatsonDiscoveryCollectionId header is not set. deleteCollection, addDocument, updateDocument and deleteDocument fail without one. query searches only this collection, or all the collections of the project when none is set. listCollections and createCollection do not use it. | String | |
camel.component.ibm-watson-discovery.configuration | The configuration that the endpoints of this component start from. Each endpoint gets a copy of it, and the options of the endpoint replace its values. The option is a org.apache.camel.component.ibm.watson.discovery.WatsonDiscoveryConfiguration type. | WatsonDiscoveryConfiguration | |
camel.component.ibm-watson-discovery.enabled | Whether to enable auto configuration of the ibm-watson-discovery component. This is enabled by default. | Boolean | |
camel.component.ibm-watson-discovery.lazy-start-producer | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing. | false | Boolean |
camel.component.ibm-watson-discovery.operation | The operation to perform. query runs a natural language query on the project, listCollections lists the collections of the project, createCollection creates the collection named by the CamelIBMWatsonDiscoveryCollectionName header, and deleteCollection deletes a collection. addDocument uploads the message body as a new document of a collection, updateDocument replaces the document of the CamelIBMWatsonDiscoveryDocumentId header (or adds one with that ID), and deleteDocument deletes that document. The CamelIBMWatsonDiscoveryOperation header overrides it, and processing a message fails when neither is set. | WatsonDiscoveryOperations | |
camel.component.ibm-watson-discovery.project-id | The ID of the IBM Watson Discovery project that every operation acts on, as shown on the Integrate and deploy page of the project. Starting the endpoint fails without it. | String | |
camel.component.ibm-watson-discovery.service-url | The URL of the IBM Watson Discovery service instance, as shown in its service credentials, such as https://api.us-south.discovery.watson.cloud.ibm.com/instances/{instance-id}. When not set, the IBM Watson SDK takes it from its external configuration (such as the DISCOVERY_URL environment variable), or else uses https://api.us-south.discovery.watson.cloud.ibm.com. | String | |
camel.component.ibm-watson-discovery.version | The version of the IBM Watson Discovery v2 API to use: a release date in YYYY-MM-DD format, sent as the version query parameter of every request. | 2023-03-31 | String |