Solr Source
Provided by: "Apache Software Foundation"
Support Level for this Kamelet is: "Stable"
Query for documents to Solr Collection.
Configuration Options
The following table summarizes the configuration options available for the solr-source
Kamelet:
Property | Name | Description | Type | Default | Example |
---|---|---|---|---|---|
Collection | Required Solr Collection name. | string | |||
Period between Polls | Required The interval between fetches to the Solr collection. | integer | 10000 | ||
Query | Required The query to submit to Solr. | string | |||
Servers | Required Comma separated list of Solr Servers and ports. | string | |||
Password | Password to connect to Solr. | string | |||
Username | Username to connect to Solr. | string |
Dependencies
At runtime, the solr-source
Kamelet relies upon the presence of the following dependencies:
-
camel:solr
-
camel:core
-
camel:timer
-
camel:jackson
-
camel:kamelet
Camel JBang usage
Prerequisites
-
You’ve installed JBang.
-
You have executed the following command:
jbang app install camel@apache/camel
Supposing you have a file named route.yaml with this content:
- route:
from:
uri: "kamelet:solr-source"
parameters:
.
.
.
steps:
- to:
uri: "kamelet:log-sink"
You can now run it directly through the following command
camel run route.yaml
Solr Source Kamelet Description
Authentication methods
This Kamelet connects to Solr using appropriate authentication mechanisms:
-
Service-specific authentication methods
-
API keys, tokens, or credential-based authentication
-
Connection configuration
Configuration
The Kamelet requires connection parameters specific to Solr:
-
Service connection details
-
Authentication credentials
-
Query or consumption parameters
Usage example
apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: solr-source-binding
spec:
source:
ref:
kind: Kamelet
apiVersion: camel.apache.org/v1alpha1
name: solr-source
properties:
# Add service-specific properties here
sink:
ref:
kind: Service
apiVersion: v1
name: my-service