solr sink Solr Sink

Provided by: "Apache Software Foundation"

Support Level for this Kamelet is: "Stable"

Send documents to Solr Collection.

Configuration Options

The following table summarizes the configuration options available for the solr-sink Kamelet:

Property Name Description Type Default Example

collection

Collection

Required Solr Collection name.

string

servers

Servers

Required Comma separated list of Solr Servers and ports.

string

autocommit

Autocommit

If autocommit should be enabled or not.

boolean

false

password

Password

Password to connect to Solr.

string

username

Username

Username to connect to Solr.

string

Dependencies

At runtime, the solr-sink Kamelet relies upon the presence of the following dependencies:

  • camel:solr

  • camel:core

  • 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:timer-source"
      parameters:
        period: 10000
        message: 'test'
      steps:
        - to:
            uri: "kamelet:solr-sink"

You can now run it directly through the following command

camel run route.yaml