solr source 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

Collection

Required Solr Collection name.

string

period

Period between Polls

Required The interval between fetches to the Solr collection.

integer

10000

query

Query

Required The query to submit to Solr.

string

servers

Servers

Required Comma separated list of Solr Servers and ports.

string

password

Password

Password to connect to Solr.

string

username

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