2 Home
gitea_admin edited this page 2026-03-11 14:42:26 +00:00

Solr

Perform operations against Apache Lucene Solr.

Metadata

Property Value
Scheme solr
Support Level Stable
Labels search,monitoring
Version 4.10.2

Maven Dependency

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-solr</artifactId>
    <version>4.10.2</version>
</dependency>

Endpoint Properties

Name Type Required Default Description
host string The solr instance host name (set to 'default' to use the host name defined on component level)
port integer 8983 The solr instance port number
basePath string /solr The solr instance base path (usually /solr)
async boolean true Use async request processing (when supported by the solr client)
autoCommit boolean false If true, each producer insert/delete operation will be automatically performing a commit
collection string The name of the collection to act against
connectionTimeout integer The time in ms to wait before connection will time out.
deleteByQuery boolean true For the delete instruction, interprete body as query/queries instead of id/ids.
from integer Starting index of the response.
operation object What operation to perform
requestHandler string The path of the update request handler (use for update requests / set solr parameter qt for search requests)
requestTimeout integer The time in ms to wait before the request will time out (former soTimeout).
size integer Size of the response.
lazyStartProducer boolean false 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.
solrClient object The solr client to connect to solr. When solrClient bean is provided, all connection properties will be used from that solrClient (host, port, username, password, connectionTimeout, requestTimeout, enableSSL, ...). When not explicitly configured, camel uses the HttpJdkSolrClient.
certificatePath string The certificate that can be used to access the solr host. It can be loaded by default from classpath, but you can prefix with classpath:, file:, or http: to load the resource from different systems.
enableSSL boolean false Enable SSL
password string Password for authenticating
username string Basic authenticate user