This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new bf3d87dfecf4 CAMEL-23832: camel-solr - improve the component and
option descriptions (#30974)
bf3d87dfecf4 is described below
commit bf3d87dfecf4515c4b312156ca41fd7900c6be33
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 27 14:55:57 2026 +0100
CAMEL-23832: camel-solr - improve the component and option descriptions
(#30974)
This commit rewrites the component description and the texts of 11
component options, 19 endpoint options and 9 headers
of solr. The new texts say which header or option replaces each value, and
which options only configure the client that
Camel creates. The component description no longer calls Solr "Apache
Lucene Solr", and the timeout texts now name the
defaults that the component options give the endpoints.
Documentation only, no behavior change. The component JSON, the catalog
copy, the doc page header and the DSL are
regenerated. camel-solr is marked as done in
tasks/component-descriptions.md.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../org/apache/camel/catalog/components/solr.json | 80 ++++----
.../apache/camel/catalog/docs/solr-component.adoc | 2 +-
.../org/apache/camel/component/solr/solr.json | 80 ++++----
.../camel-solr/src/main/docs/solr-component.adoc | 2 +-
.../apache/camel/component/solr/SolrComponent.java | 77 +++-----
.../camel/component/solr/SolrConfiguration.java | 139 ++++++--------
.../apache/camel/component/solr/SolrConstants.java | 33 +++-
.../apache/camel/component/solr/SolrEndpoint.java | 2 +-
.../component/ComponentsBuilderFactory.java | 2 +-
.../component/dsl/SolrComponentBuilderFactory.java | 46 +++--
.../builder/endpoint/EndpointHeaderBuilders.java | 2 +-
.../builder/endpoint/StaticEndpointBuilders.java | 26 ++-
.../endpoint/dsl/SolrEndpointBuilderFactory.java | 211 ++++++++++++++-------
tasks/component-descriptions.md | 2 +-
14 files changed, 384 insertions(+), 320 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/solr.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/solr.json
index aced44141932..bd1ea2f6b7e7 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/solr.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/solr.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "solr",
"title": "Solr",
- "description": "Perform operations against Apache Lucene Solr.",
+ "description": "Index, search and delete documents in Apache Solr.",
"deprecated": false,
"firstVersion": "4.8.0",
"label": "search,monitoring",
@@ -24,30 +24,30 @@
"remote": true
},
"componentProperties": {
- "connectionTimeout": { "index": 0, "kind": "property", "displayName":
"Connection Timeout", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 60000, "description": "The time in ms to wait
before connection will time out." },
- "defaultCollection": { "index": 1, "kind": "property", "displayName":
"Default Collection", "group": "producer", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Solr default collection
name" },
- "host": { "index": 2, "kind": "property", "displayName": "Host", "group":
"producer", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The solr instance host name" },
+ "connectionTimeout": { "index": 0, "kind": "property", "displayName":
"Connection Timeout", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 60000, "description": "The time in
milliseconds that the clients that Camel creates wait to connect to Solr. The
connectionTimeout option of an endpoint replaces it." },
+ "defaultCollection": { "index": 1, "kind": "property", "displayName":
"Default Collection", "group": "producer", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "The name of the
collection, for the endpoints that set no collection." },
+ "host": { "index": 2, "kind": "property", "displayName": "Host", "group":
"producer", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The host name of the Solr server, for the endpoints that set
their host to default. If not set, these endpoints use localhost." },
"lazyStartProducer": { "index": 3, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"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 [...]
- "port": { "index": 4, "kind": "property", "displayName": "Port", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"int", "deprecated": false, "autowired": false, "secret": false, "description":
"The solr instance port number" },
- "requestTimeout": { "index": 5, "kind": "property", "displayName":
"Request Timeout", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 600000, "description": "The timeout in ms to
wait before the socket will time out." },
+ "port": { "index": 4, "kind": "property", "displayName": "Port", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"int", "deprecated": false, "autowired": false, "secret": false, "description":
"The port of the Solr server, for the endpoints that set no port. If not set,
these endpoints use 8983." },
+ "requestTimeout": { "index": 5, "kind": "property", "displayName":
"Request Timeout", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 600000, "description": "The time in
milliseconds that the clients that Camel creates wait for the response to a
request. The requestTimeout option of an endpoint replaces it." },
"autowiredEnabled": { "index": 6, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"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 t [...]
- "solrClient": { "index": 7, "kind": "property", "displayName": "Solr
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "org.apache.solr.client.solrj.SolrClient", "deprecated":
false, "autowired": true, "secret": false, "description": "To use an existing
configured solr client, instead of creating a client per endpoint. This allows
customizing the client with specific advanced settings." },
- "enableSSL": { "index": 8, "kind": "property", "displayName": "Enable
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "Enable SSL" },
- "password": { "index": 9, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "Password for
authenticating" },
- "sslContextParameters": { "index": 10, "kind": "property", "displayName":
"Ssl Context Parameters", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false,
"autowired": false, "secret": false, "description": "To configure security
using SSLContextParameters. When configured, this takes precedence over the
certificatePath option." },
- "useGlobalSslContextParameters": { "index": 11, "kind": "property",
"displayName": "Use Global Ssl Context Parameters", "group": "security",
"label": "security", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Enable usage of global SSL context
parameters." },
- "username": { "index": 12, "kind": "property", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "Basic authenticate user" }
+ "solrClient": { "index": 7, "kind": "property", "displayName": "Solr
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "org.apache.solr.client.solrj.SolrClient", "deprecated":
false, "autowired": true, "secret": false, "description": "To use a custom
org.apache.solr.client.solrj.SolrClient for all the endpoints, instead of a
client that Camel creates for each endpoint. The solrClient option of an
endpoint replaces it. Camel does not c [...]
+ "enableSSL": { "index": 8, "kind": "property", "displayName": "Enable
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "Whether the clients
that Camel creates connect to Solr with HTTPS instead of HTTP. The enableSSL
option of an endpoint replaces it." },
+ "password": { "index": 9, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "The password for HTTP
basic authentication with Solr, for all the endpoints. The password option of
an endpoint replaces it." },
+ "sslContextParameters": { "index": 10, "kind": "property", "displayName":
"Ssl Context Parameters", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false,
"autowired": false, "secret": false, "description": "The TLS configuration (key
store, trust store, protocols, cipher suites, named groups) of the clients that
Camel creates, for all the endpoints. The sslContextParameters [...]
+ "useGlobalSslContextParameters": { "index": 11, "kind": "property",
"displayName": "Use Global Ssl Context Parameters", "group": "security",
"label": "security", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the endpoints use the global SSL
context parameters of the CamelContext when neither the component nor the
endpoint sets the sslContextParameters option." },
+ "username": { "index": 12, "kind": "property", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "The user name for HTTP
basic authentication with Solr, for all the endpoints. The username option of
an endpoint replaces it." }
},
"headers": {
- "CamelSolrOperation": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
operation to perform.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_OPERATION" },
- "CamelSolrCollection": { "index": 1, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
collection to execute the request against.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_COLLECTION" },
- "CamelSolrRequestHandler": { "index": 2, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
request handler to execute the solr request against.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_REQUEST_HANDLER" },
- "CamelSolrQueryString": { "index": 3, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
query to execute.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_QUERY_STRING" },
- "CamelSolrSize": { "index": 4, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "autowired": false, "secret": false, "description": "The
size of the response.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_SIZE" },
- "CamelSolrFrom": { "index": 5, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "autowired": false, "secret": false, "description": "The
starting index of the response.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_FROM" },
- "CamelSolrParams": { "index": 6, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"org.apache.solr.common.params.SolrParams", "deprecated": false, "autowired":
false, "secret": false, "description": "The solr parameters to use for the
request.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_SOLR_PARAMS" },
- "CamelSolrDeleteByQuery": { "index": 7, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"false", "description": "For the delete instruction, interpret body as
query\/queries instead of id\/ids.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_DELETE_BY_QUERY" },
- "Content-Type": { "index": 8, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
content type is used to identify the type when inserting files.",
"constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_CONTENT_TYPE" },
+ "CamelSolrOperation": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
operation to perform: INSERT, DELETE, SEARCH or PING. It replaces the operation
option, and a body that is a SolrJ request replaces it. Older values such as
DELETE_BY_QUERY or COMMIT still work, and log a warning.", "constantName":
"org.apache.camel.component.so [...]
+ "CamelSolrCollection": { "index": 1, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
name of the collection that the request goes to. It replaces the collection
option.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_COLLECTION" },
+ "CamelSolrRequestHandler": { "index": 2, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
path of the request handler, for example \/update\/json. It replaces the
requestHandler option.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_REQUEST_HANDLER" },
+ "CamelSolrQueryString": { "index": 3, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
query of a search. It replaces a text body, but not a SolrQuery or QueryRequest
body. When no operation is set, a message with this header is a search.",
"constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_QUERY_STRING" },
+ "CamelSolrSize": { "index": 4, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "autowired": false, "secret": false, "description": "The
maximum number of documents that a search returns, which is the rows parameter
of Solr. It replaces the size option.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_SIZE" },
+ "CamelSolrFrom": { "index": 5, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "autowired": false, "secret": false, "description": "The
index of the first document that a search returns, which is the start parameter
of Solr. It replaces the from option.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_FROM" },
+ "CamelSolrParams": { "index": 6, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"org.apache.solr.common.params.SolrParams", "deprecated": false, "autowired":
false, "secret": false, "description": "The request parameters to send to Solr
with an insert, a delete or a search. The headers with the CamelSolrParam.
prefix add to them.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_SOLR_PARAMS" },
+ "CamelSolrDeleteByQuery": { "index": 7, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"false", "description": "Whether a DELETE takes the body as a query, or a
collection of queries, instead of the id of the documents to delete. It
replaces the deleteByQuery option.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_DELETE_BY [...]
+ "Content-Type": { "index": 8, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
content type of a file or text body to insert, for example application\/json.
If not set, it is detected from the file or the text.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_CONTENT_TYPE" },
"CamelSolrField.": { "index": 9, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "Object",
"deprecated": false, "autowired": false, "secret": false, "description": "The
prefix of the headers that carry the fields of the document to insert: the
header CamelSolrField.id holds the id field.", "constantName":
"org.apache.camel.component.solr.SolrConstants#HEADER_FIELD_PREFIX" },
"CamelSolrParam.": { "index": 10, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
prefix of the headers that carry extra request parameters: the header
CamelSolrParam.commit holds the commit parameter.", "constantName":
"org.apache.camel.component.solr.SolrConstants#HEADER_PARAM_PREFIX" }
},
@@ -56,25 +56,25 @@
"producerOut": { "carriers": [ "map" ], "description": "The response of
Solr as a Map (a SimpleOrderedMap) with the responseHeader and, for a search,
the documents under response as a SolrDocumentList. Convert it to a
QueryResponse or a SolrPingResponse to read it with SolrJ" }
},
"properties": {
- "host": { "index": 0, "kind": "path", "displayName": "Host", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.solr.SolrConfiguration",
"configurationField": "configuration", "description": "The solr instance host
name (set to 'default' to use the host name defined on component level)" },
- "port": { "index": 1, "kind": "path", "displayName": "Port", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 8983, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The solr instance port number" },
- "basePath": { "index": 2, "kind": "path", "displayName": "Base Path",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "\/solr", "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The solr instance base path (usually \/solr)"
},
- "async": { "index": 3, "kind": "parameter", "displayName": "Async",
"group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Use async request processing (when supported
by the solr client)" },
- "autoCommit": { "index": 4, "kind": "parameter", "displayName": "Auto
Commit", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "If true, each producer insert\/delete
operation will be automatically performing a commit" },
- "collection": { "index": 5, "kind": "parameter", "displayName":
"Collection", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The name of the collection to act against" },
- "connectionTimeout": { "index": 6, "kind": "parameter", "displayName":
"Connection Timeout", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "java.lang.Long", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The time in ms to wait before connection will
time out." },
- "deleteByQuery": { "index": 7, "kind": "parameter", "displayName": "Delete
By Query", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "For the delete instruction, interpret body as
query\/queries instead of id\/ids." },
- "from": { "index": 8, "kind": "parameter", "displayName": "From", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.solr.SolrConfiguration",
"configurationField": "configuration", "description": "Starting index of the
response." },
- "operation": { "index": 9, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "", "required": false, "type":
"enum", "javaType": "org.apache.camel.component.solr.SolrOperation", "enum": [
"DELETE", "INSERT", "PING", "SEARCH" ], "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "What operation to perform" },
- "requestHandler": { "index": 10, "kind": "parameter", "displayName":
"Request Handler", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The path of the update request handler (use
for update requests \/ set solr parameter qt for search requests)" },
- "requestTimeout": { "index": 11, "kind": "parameter", "displayName":
"Request Timeout", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "java.lang.Long", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The time in ms to wait before the request will
time out (former soTimeout)." },
- "size": { "index": 12, "kind": "parameter", "displayName": "Size",
"group": "producer", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Size of the response." },
+ "host": { "index": 0, "kind": "path", "displayName": "Host", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.solr.SolrConfiguration",
"configurationField": "configuration", "description": "The host name of the
Solr server. Set it to default to use the host option of the component, or
localhost when that is not set." },
+ "port": { "index": 1, "kind": "path", "displayName": "Port", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 8983, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The port of the Solr server. If not set, the
port option of the component is used, or 8983 when that is not set." },
+ "basePath": { "index": 2, "kind": "path", "displayName": "Base Path",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "\/solr", "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The base path of the Solr server. A path that
starts with \/solr\/ sets the collection and the reques [...]
+ "async": { "index": 3, "kind": "parameter", "displayName": "Async",
"group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Whether the producer sends the requests
asynchronously. This needs a client that extends HttpSolrClientBase, such a
[...]
+ "autoCommit": { "index": 4, "kind": "parameter", "displayName": "Auto
Commit", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Whether the producer adds the commit=true
parameter to each request, so that Solr commits an insert or [...]
+ "collection": { "index": 5, "kind": "parameter", "displayName":
"Collection", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The name of the collection that the requests
go to. The CamelSolrCollection header replaces this option. If not set, th [...]
+ "connectionTimeout": { "index": 6, "kind": "parameter", "displayName":
"Connection Timeout", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "java.lang.Long", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The time in milliseconds that the client that
Camel creates waits to connect to Solr. If not set, the con [...]
+ "deleteByQuery": { "index": 7, "kind": "parameter", "displayName": "Delete
By Query", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Whether a DELETE takes the body as a query, or
a collection of queries, instead of the id of the [...]
+ "from": { "index": 8, "kind": "parameter", "displayName": "From", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.solr.SolrConfiguration",
"configurationField": "configuration", "description": "The index of the first
document that a search returns, which is the start parameter of Solr (0 by
default in Solr). The CamelSolr [...]
+ "operation": { "index": 9, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "", "required": false, "type":
"enum", "javaType": "org.apache.camel.component.solr.SolrOperation", "enum": [
"DELETE", "INSERT", "PING", "SEARCH" ], "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The operation that the producer performs. Th
[...]
+ "requestHandler": { "index": 10, "kind": "parameter", "displayName":
"Request Handler", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The path of the request handler, for example
\/update\/json. An insert or a delete sends the update request t [...]
+ "requestTimeout": { "index": 11, "kind": "parameter", "displayName":
"Request Timeout", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "java.lang.Long", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The time in milliseconds that the client that
Camel creates waits for the response to a request. If not set, t [...]
+ "size": { "index": 12, "kind": "parameter", "displayName": "Size",
"group": "producer", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The maximum number of documents that a search
returns, which is the rows parameter of Solr (10 by default in Solr). The
CamelSol [...]
"lazyStartProducer": { "index": 13, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "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 produ [...]
- "solrClient": { "index": 14, "kind": "parameter", "displayName": "Solr
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "org.apache.solr.client.solrj.SolrClient", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The solr client to connect to solr. When
solrClient bean is provided, all connection p [...]
- "certificatePath": { "index": 15, "kind": "parameter", "displayName":
"Certificate Path", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "supportFileReference": true,
"configurationClass": "org.apache.camel.component.solr.SolrConfiguration",
"configurationField": "configuration", "description": "The certificate that can
be used to access the solr host. It can be l [...]
- "enableSSL": { "index": 16, "kind": "parameter", "displayName": "Enable
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Enable SSL" },
- "password": { "index": 17, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Password for authenticating" },
- "sslContextParameters": { "index": 18, "kind": "parameter", "displayName":
"Ssl Context Parameters", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "To configure security using
SSLContextParameters. When [...]
- "username": { "index": 19, "kind": "parameter", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Basic authenticate user" }
+ "solrClient": { "index": 14, "kind": "parameter", "displayName": "Solr
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "org.apache.solr.client.solrj.SolrClient", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "To use a custom
org.apache.solr.client.solrj.SolrClient. When set, the host, port, bas [...]
+ "certificatePath": { "index": 15, "kind": "parameter", "displayName":
"Certificate Path", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "supportFileReference": true,
"configurationClass": "org.apache.camel.component.solr.SolrConfiguration",
"configurationField": "configuration", "description": "The X.509 certificate of
the certificate authority that the client th [...]
+ "enableSSL": { "index": 16, "kind": "parameter", "displayName": "Enable
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Whether the client that Camel creates connects
to Solr with HTTPS instead of HTTP." },
+ "password": { "index": 17, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The password for HTTP basic authentication
with Solr, used together with the username option [...]
+ "sslContextParameters": { "index": 18, "kind": "parameter", "displayName":
"Ssl Context Parameters", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The TLS configuration (key store, trust store,
protoco [...]
+ "username": { "index": 19, "kind": "parameter", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The user name for HTTP basic authentication
with Solr, used together with the password option [...]
}
}
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/solr-component.adoc
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/solr-component.adoc
index f34f48a1d1c4..079fb797175d 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/solr-component.adoc
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/solr-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Solr
:shortname: solr
:artifactid: camel-solr
-:description: Perform operations against Apache Lucene Solr.
+:description: Index, search and delete documents in Apache Solr.
:since: 4.8
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-solr/src/generated/resources/META-INF/org/apache/camel/component/solr/solr.json
b/components/camel-solr/src/generated/resources/META-INF/org/apache/camel/component/solr/solr.json
index aced44141932..bd1ea2f6b7e7 100644
---
a/components/camel-solr/src/generated/resources/META-INF/org/apache/camel/component/solr/solr.json
+++
b/components/camel-solr/src/generated/resources/META-INF/org/apache/camel/component/solr/solr.json
@@ -3,7 +3,7 @@
"kind": "component",
"name": "solr",
"title": "Solr",
- "description": "Perform operations against Apache Lucene Solr.",
+ "description": "Index, search and delete documents in Apache Solr.",
"deprecated": false,
"firstVersion": "4.8.0",
"label": "search,monitoring",
@@ -24,30 +24,30 @@
"remote": true
},
"componentProperties": {
- "connectionTimeout": { "index": 0, "kind": "property", "displayName":
"Connection Timeout", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 60000, "description": "The time in ms to wait
before connection will time out." },
- "defaultCollection": { "index": 1, "kind": "property", "displayName":
"Default Collection", "group": "producer", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "Solr default collection
name" },
- "host": { "index": 2, "kind": "property", "displayName": "Host", "group":
"producer", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The solr instance host name" },
+ "connectionTimeout": { "index": 0, "kind": "property", "displayName":
"Connection Timeout", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 60000, "description": "The time in
milliseconds that the clients that Camel creates wait to connect to Solr. The
connectionTimeout option of an endpoint replaces it." },
+ "defaultCollection": { "index": 1, "kind": "property", "displayName":
"Default Collection", "group": "producer", "label": "", "required": false,
"type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "description": "The name of the
collection, for the endpoints that set no collection." },
+ "host": { "index": 2, "kind": "property", "displayName": "Host", "group":
"producer", "label": "", "required": false, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"description": "The host name of the Solr server, for the endpoints that set
their host to default. If not set, these endpoints use localhost." },
"lazyStartProducer": { "index": 3, "kind": "property", "displayName":
"Lazy Start Producer", "group": "producer", "label": "producer", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": false, "description":
"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 [...]
- "port": { "index": 4, "kind": "property", "displayName": "Port", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"int", "deprecated": false, "autowired": false, "secret": false, "description":
"The solr instance port number" },
- "requestTimeout": { "index": 5, "kind": "property", "displayName":
"Request Timeout", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 600000, "description": "The timeout in ms to
wait before the socket will time out." },
+ "port": { "index": 4, "kind": "property", "displayName": "Port", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"int", "deprecated": false, "autowired": false, "secret": false, "description":
"The port of the Solr server, for the endpoints that set no port. If not set,
these endpoints use 8983." },
+ "requestTimeout": { "index": 5, "kind": "property", "displayName":
"Request Timeout", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "long", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": 600000, "description": "The time in
milliseconds that the clients that Camel creates wait for the response to a
request. The requestTimeout option of an endpoint replaces it." },
"autowiredEnabled": { "index": 6, "kind": "property", "displayName":
"Autowired Enabled", "group": "advanced", "label": "advanced", "required":
false, "type": "boolean", "javaType": "boolean", "deprecated": false,
"autowired": false, "secret": false, "defaultValue": true, "description":
"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 t [...]
- "solrClient": { "index": 7, "kind": "property", "displayName": "Solr
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "org.apache.solr.client.solrj.SolrClient", "deprecated":
false, "autowired": true, "secret": false, "description": "To use an existing
configured solr client, instead of creating a client per endpoint. This allows
customizing the client with specific advanced settings." },
- "enableSSL": { "index": 8, "kind": "property", "displayName": "Enable
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "Enable SSL" },
- "password": { "index": 9, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "Password for
authenticating" },
- "sslContextParameters": { "index": 10, "kind": "property", "displayName":
"Ssl Context Parameters", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false,
"autowired": false, "secret": false, "description": "To configure security
using SSLContextParameters. When configured, this takes precedence over the
certificatePath option." },
- "useGlobalSslContextParameters": { "index": 11, "kind": "property",
"displayName": "Use Global Ssl Context Parameters", "group": "security",
"label": "security", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Enable usage of global SSL context
parameters." },
- "username": { "index": 12, "kind": "property", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "Basic authenticate user" }
+ "solrClient": { "index": 7, "kind": "property", "displayName": "Solr
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "org.apache.solr.client.solrj.SolrClient", "deprecated":
false, "autowired": true, "secret": false, "description": "To use a custom
org.apache.solr.client.solrj.SolrClient for all the endpoints, instead of a
client that Camel creates for each endpoint. The solrClient option of an
endpoint replaces it. Camel does not c [...]
+ "enableSSL": { "index": 8, "kind": "property", "displayName": "Enable
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "description": "Whether the clients
that Camel creates connect to Solr with HTTPS instead of HTTP. The enableSSL
option of an endpoint replaces it." },
+ "password": { "index": 9, "kind": "property", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "The password for HTTP
basic authentication with Solr, for all the endpoints. The password option of
an endpoint replaces it." },
+ "sslContextParameters": { "index": 10, "kind": "property", "displayName":
"Ssl Context Parameters", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false,
"autowired": false, "secret": false, "description": "The TLS configuration (key
store, trust store, protocols, cipher suites, named groups) of the clients that
Camel creates, for all the endpoints. The sslContextParameters [...]
+ "useGlobalSslContextParameters": { "index": 11, "kind": "property",
"displayName": "Use Global Ssl Context Parameters", "group": "security",
"label": "security", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "Whether the endpoints use the global SSL
context parameters of the CamelContext when neither the component nor the
endpoint sets the sslContextParameters option." },
+ "username": { "index": 12, "kind": "property", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "description": "The user name for HTTP
basic authentication with Solr, for all the endpoints. The username option of
an endpoint replaces it." }
},
"headers": {
- "CamelSolrOperation": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
operation to perform.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_OPERATION" },
- "CamelSolrCollection": { "index": 1, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
collection to execute the request against.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_COLLECTION" },
- "CamelSolrRequestHandler": { "index": 2, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
request handler to execute the solr request against.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_REQUEST_HANDLER" },
- "CamelSolrQueryString": { "index": 3, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
query to execute.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_QUERY_STRING" },
- "CamelSolrSize": { "index": 4, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "autowired": false, "secret": false, "description": "The
size of the response.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_SIZE" },
- "CamelSolrFrom": { "index": 5, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "autowired": false, "secret": false, "description": "The
starting index of the response.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_FROM" },
- "CamelSolrParams": { "index": 6, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"org.apache.solr.common.params.SolrParams", "deprecated": false, "autowired":
false, "secret": false, "description": "The solr parameters to use for the
request.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_SOLR_PARAMS" },
- "CamelSolrDeleteByQuery": { "index": 7, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"false", "description": "For the delete instruction, interpret body as
query\/queries instead of id\/ids.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_DELETE_BY_QUERY" },
- "Content-Type": { "index": 8, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
content type is used to identify the type when inserting files.",
"constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_CONTENT_TYPE" },
+ "CamelSolrOperation": { "index": 0, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
operation to perform: INSERT, DELETE, SEARCH or PING. It replaces the operation
option, and a body that is a SolrJ request replaces it. Older values such as
DELETE_BY_QUERY or COMMIT still work, and log a warning.", "constantName":
"org.apache.camel.component.so [...]
+ "CamelSolrCollection": { "index": 1, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
name of the collection that the request goes to. It replaces the collection
option.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_COLLECTION" },
+ "CamelSolrRequestHandler": { "index": 2, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
path of the request handler, for example \/update\/json. It replaces the
requestHandler option.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_REQUEST_HANDLER" },
+ "CamelSolrQueryString": { "index": 3, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
query of a search. It replaces a text body, but not a SolrQuery or QueryRequest
body. When no operation is set, a message with this header is a search.",
"constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_QUERY_STRING" },
+ "CamelSolrSize": { "index": 4, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "autowired": false, "secret": false, "description": "The
maximum number of documents that a search returns, which is the rows parameter
of Solr. It replaces the size option.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_SIZE" },
+ "CamelSolrFrom": { "index": 5, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "Integer",
"deprecated": false, "autowired": false, "secret": false, "description": "The
index of the first document that a search returns, which is the start parameter
of Solr. It replaces the from option.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_FROM" },
+ "CamelSolrParams": { "index": 6, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType":
"org.apache.solr.common.params.SolrParams", "deprecated": false, "autowired":
false, "secret": false, "description": "The request parameters to send to Solr
with an insert, a delete or a search. The headers with the CamelSolrParam.
prefix add to them.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_SOLR_PARAMS" },
+ "CamelSolrDeleteByQuery": { "index": 7, "kind": "header", "displayName":
"", "group": "producer", "label": "", "required": false, "javaType": "boolean",
"deprecated": false, "autowired": false, "secret": false, "defaultValue":
"false", "description": "Whether a DELETE takes the body as a query, or a
collection of queries, instead of the id of the documents to delete. It
replaces the deleteByQuery option.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_DELETE_BY [...]
+ "Content-Type": { "index": 8, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
content type of a file or text body to insert, for example application\/json.
If not set, it is detected from the file or the text.", "constantName":
"org.apache.camel.component.solr.SolrConstants#PARAM_CONTENT_TYPE" },
"CamelSolrField.": { "index": 9, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "Object",
"deprecated": false, "autowired": false, "secret": false, "description": "The
prefix of the headers that carry the fields of the document to insert: the
header CamelSolrField.id holds the id field.", "constantName":
"org.apache.camel.component.solr.SolrConstants#HEADER_FIELD_PREFIX" },
"CamelSolrParam.": { "index": 10, "kind": "header", "displayName": "",
"group": "producer", "label": "", "required": false, "javaType": "String",
"deprecated": false, "autowired": false, "secret": false, "description": "The
prefix of the headers that carry extra request parameters: the header
CamelSolrParam.commit holds the commit parameter.", "constantName":
"org.apache.camel.component.solr.SolrConstants#HEADER_PARAM_PREFIX" }
},
@@ -56,25 +56,25 @@
"producerOut": { "carriers": [ "map" ], "description": "The response of
Solr as a Map (a SimpleOrderedMap) with the responseHeader and, for a search,
the documents under response as a SolrDocumentList. Convert it to a
QueryResponse or a SolrPingResponse to read it with SolrJ" }
},
"properties": {
- "host": { "index": 0, "kind": "path", "displayName": "Host", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.solr.SolrConfiguration",
"configurationField": "configuration", "description": "The solr instance host
name (set to 'default' to use the host name defined on component level)" },
- "port": { "index": 1, "kind": "path", "displayName": "Port", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 8983, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The solr instance port number" },
- "basePath": { "index": 2, "kind": "path", "displayName": "Base Path",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "\/solr", "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The solr instance base path (usually \/solr)"
},
- "async": { "index": 3, "kind": "parameter", "displayName": "Async",
"group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Use async request processing (when supported
by the solr client)" },
- "autoCommit": { "index": 4, "kind": "parameter", "displayName": "Auto
Commit", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "If true, each producer insert\/delete
operation will be automatically performing a commit" },
- "collection": { "index": 5, "kind": "parameter", "displayName":
"Collection", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The name of the collection to act against" },
- "connectionTimeout": { "index": 6, "kind": "parameter", "displayName":
"Connection Timeout", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "java.lang.Long", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The time in ms to wait before connection will
time out." },
- "deleteByQuery": { "index": 7, "kind": "parameter", "displayName": "Delete
By Query", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "For the delete instruction, interpret body as
query\/queries instead of id\/ids." },
- "from": { "index": 8, "kind": "parameter", "displayName": "From", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.solr.SolrConfiguration",
"configurationField": "configuration", "description": "Starting index of the
response." },
- "operation": { "index": 9, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "", "required": false, "type":
"enum", "javaType": "org.apache.camel.component.solr.SolrOperation", "enum": [
"DELETE", "INSERT", "PING", "SEARCH" ], "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "What operation to perform" },
- "requestHandler": { "index": 10, "kind": "parameter", "displayName":
"Request Handler", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The path of the update request handler (use
for update requests \/ set solr parameter qt for search requests)" },
- "requestTimeout": { "index": 11, "kind": "parameter", "displayName":
"Request Timeout", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "java.lang.Long", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The time in ms to wait before the request will
time out (former soTimeout)." },
- "size": { "index": 12, "kind": "parameter", "displayName": "Size",
"group": "producer", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Size of the response." },
+ "host": { "index": 0, "kind": "path", "displayName": "Host", "group":
"producer", "label": "", "required": true, "type": "string", "javaType":
"java.lang.String", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.solr.SolrConfiguration",
"configurationField": "configuration", "description": "The host name of the
Solr server. Set it to default to use the host option of the component, or
localhost when that is not set." },
+ "port": { "index": 1, "kind": "path", "displayName": "Port", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"int", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": 8983, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The port of the Solr server. If not set, the
port option of the component is used, or 8983 when that is not set." },
+ "basePath": { "index": 2, "kind": "path", "displayName": "Base Path",
"group": "producer", "label": "", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": "\/solr", "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The base path of the Solr server. A path that
starts with \/solr\/ sets the collection and the reques [...]
+ "async": { "index": 3, "kind": "parameter", "displayName": "Async",
"group": "producer", "label": "", "required": false, "type": "boolean",
"javaType": "boolean", "deprecated": false, "autowired": false, "secret":
false, "defaultValue": true, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Whether the producer sends the requests
asynchronously. This needs a client that extends HttpSolrClientBase, such a
[...]
+ "autoCommit": { "index": 4, "kind": "parameter", "displayName": "Auto
Commit", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Whether the producer adds the commit=true
parameter to each request, so that Solr commits an insert or [...]
+ "collection": { "index": 5, "kind": "parameter", "displayName":
"Collection", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The name of the collection that the requests
go to. The CamelSolrCollection header replaces this option. If not set, th [...]
+ "connectionTimeout": { "index": 6, "kind": "parameter", "displayName":
"Connection Timeout", "group": "producer", "label": "", "required": false,
"type": "integer", "javaType": "java.lang.Long", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The time in milliseconds that the client that
Camel creates waits to connect to Solr. If not set, the con [...]
+ "deleteByQuery": { "index": 7, "kind": "parameter", "displayName": "Delete
By Query", "group": "producer", "label": "", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Whether a DELETE takes the body as a query, or
a collection of queries, instead of the id of the [...]
+ "from": { "index": 8, "kind": "parameter", "displayName": "From", "group":
"producer", "label": "", "required": false, "type": "integer", "javaType":
"java.lang.Integer", "deprecated": false, "autowired": false, "secret": false,
"configurationClass": "org.apache.camel.component.solr.SolrConfiguration",
"configurationField": "configuration", "description": "The index of the first
document that a search returns, which is the start parameter of Solr (0 by
default in Solr). The CamelSolr [...]
+ "operation": { "index": 9, "kind": "parameter", "displayName":
"Operation", "group": "producer", "label": "", "required": false, "type":
"enum", "javaType": "org.apache.camel.component.solr.SolrOperation", "enum": [
"DELETE", "INSERT", "PING", "SEARCH" ], "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The operation that the producer performs. Th
[...]
+ "requestHandler": { "index": 10, "kind": "parameter", "displayName":
"Request Handler", "group": "producer", "label": "", "required": false, "type":
"string", "javaType": "java.lang.String", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The path of the request handler, for example
\/update\/json. An insert or a delete sends the update request t [...]
+ "requestTimeout": { "index": 11, "kind": "parameter", "displayName":
"Request Timeout", "group": "producer", "label": "", "required": false, "type":
"integer", "javaType": "java.lang.Long", "deprecated": false, "autowired":
false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The time in milliseconds that the client that
Camel creates waits for the response to a request. If not set, t [...]
+ "size": { "index": 12, "kind": "parameter", "displayName": "Size",
"group": "producer", "label": "", "required": false, "type": "integer",
"javaType": "java.lang.Integer", "deprecated": false, "autowired": false,
"secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The maximum number of documents that a search
returns, which is the rows parameter of Solr (10 by default in Solr). The
CamelSol [...]
"lazyStartProducer": { "index": 13, "kind": "parameter", "displayName":
"Lazy Start Producer", "group": "producer (advanced)", "label":
"producer,advanced", "required": false, "type": "boolean", "javaType":
"boolean", "deprecated": false, "autowired": false, "secret": false,
"defaultValue": false, "description": "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 produ [...]
- "solrClient": { "index": 14, "kind": "parameter", "displayName": "Solr
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "org.apache.solr.client.solrj.SolrClient", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The solr client to connect to solr. When
solrClient bean is provided, all connection p [...]
- "certificatePath": { "index": 15, "kind": "parameter", "displayName":
"Certificate Path", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "supportFileReference": true,
"configurationClass": "org.apache.camel.component.solr.SolrConfiguration",
"configurationField": "configuration", "description": "The certificate that can
be used to access the solr host. It can be l [...]
- "enableSSL": { "index": 16, "kind": "parameter", "displayName": "Enable
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Enable SSL" },
- "password": { "index": 17, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Password for authenticating" },
- "sslContextParameters": { "index": 18, "kind": "parameter", "displayName":
"Ssl Context Parameters", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "To configure security using
SSLContextParameters. When [...]
- "username": { "index": 19, "kind": "parameter", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Basic authenticate user" }
+ "solrClient": { "index": 14, "kind": "parameter", "displayName": "Solr
Client", "group": "advanced", "label": "advanced", "required": false, "type":
"object", "javaType": "org.apache.solr.client.solrj.SolrClient", "deprecated":
false, "autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "To use a custom
org.apache.solr.client.solrj.SolrClient. When set, the host, port, bas [...]
+ "certificatePath": { "index": 15, "kind": "parameter", "displayName":
"Certificate Path", "group": "security", "label": "security", "required":
false, "type": "string", "javaType": "java.lang.String", "deprecated": false,
"autowired": false, "secret": false, "supportFileReference": true,
"configurationClass": "org.apache.camel.component.solr.SolrConfiguration",
"configurationField": "configuration", "description": "The X.509 certificate of
the certificate authority that the client th [...]
+ "enableSSL": { "index": 16, "kind": "parameter", "displayName": "Enable
SSL", "group": "security", "label": "security", "required": false, "type":
"boolean", "javaType": "boolean", "deprecated": false, "autowired": false,
"secret": false, "defaultValue": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "Whether the client that Camel creates connects
to Solr with HTTPS instead of HTTP." },
+ "password": { "index": 17, "kind": "parameter", "displayName": "Password",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The password for HTTP basic authentication
with Solr, used together with the username option [...]
+ "sslContextParameters": { "index": 18, "kind": "parameter", "displayName":
"Ssl Context Parameters", "group": "security", "label": "security", "required":
false, "type": "object", "javaType":
"org.apache.camel.support.jsse.SSLContextParameters", "deprecated": false,
"autowired": false, "secret": false, "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The TLS configuration (key store, trust store,
protoco [...]
+ "username": { "index": 19, "kind": "parameter", "displayName": "Username",
"group": "security", "label": "security", "required": false, "type": "string",
"javaType": "java.lang.String", "deprecated": false, "autowired": false,
"secret": true, "security": "secret", "configurationClass":
"org.apache.camel.component.solr.SolrConfiguration", "configurationField":
"configuration", "description": "The user name for HTTP basic authentication
with Solr, used together with the password option [...]
}
}
diff --git a/components/camel-solr/src/main/docs/solr-component.adoc
b/components/camel-solr/src/main/docs/solr-component.adoc
index f34f48a1d1c4..079fb797175d 100644
--- a/components/camel-solr/src/main/docs/solr-component.adoc
+++ b/components/camel-solr/src/main/docs/solr-component.adoc
@@ -2,7 +2,7 @@
:doctitle: Solr
:shortname: solr
:artifactid: camel-solr
-:description: Perform operations against Apache Lucene Solr.
+:description: Index, search and delete documents in Apache Solr.
:since: 4.8
:supportlevel: Stable
:tabs-sync-option:
diff --git
a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrComponent.java
b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrComponent.java
index 4723dcc52e95..3a07ccac866c 100644
---
a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrComponent.java
+++
b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrComponent.java
@@ -33,27 +33,47 @@ import org.apache.solr.client.solrj.SolrClient;
@Component("solr")
public class SolrComponent extends DefaultComponent implements
SSLContextParametersAware {
- @Metadata(label = "advanced", autowired = true)
+ @Metadata(label = "advanced", autowired = true,
+ description = "To use a custom
org.apache.solr.client.solrj.SolrClient for all the endpoints, instead of a
client"
+ + " that Camel creates for each endpoint. The
solrClient option of an endpoint replaces it. Camel"
+ + " does not close a client that is set or
autowired.")
private SolrClient solrClient;
- @Metadata
+ @Metadata(description = "The host name of the Solr server, for the
endpoints that set their host to default. If not set,"
+ + " these endpoints use localhost.")
private String host;
- @Metadata
+ @Metadata(description = "The port of the Solr server, for the endpoints
that set no port. If not set, these endpoints use"
+ + " 8983.")
private int port;
- @Metadata
+ @Metadata(description = "The name of the collection, for the endpoints
that set no collection.")
private String defaultCollection;
- @Metadata(defaultValue = "" + SolrConstants.DEFAULT_REQUEST_TIMEOUT)
+ @Metadata(defaultValue = "" + SolrConstants.DEFAULT_REQUEST_TIMEOUT,
+ description = "The time in milliseconds that the clients that
Camel creates wait for the response to a request."
+ + " The requestTimeout option of an endpoint
replaces it.")
private long requestTimeout = SolrConstants.DEFAULT_REQUEST_TIMEOUT;
- @Metadata(defaultValue = "" + SolrConstants.DEFAULT_CONNECT_TIMEOUT)
+ @Metadata(defaultValue = "" + SolrConstants.DEFAULT_CONNECT_TIMEOUT,
+ description = "The time in milliseconds that the clients that
Camel creates wait to connect to Solr. The"
+ + " connectionTimeout option of an endpoint
replaces it.")
private long connectionTimeout = SolrConstants.DEFAULT_CONNECT_TIMEOUT;
- @Metadata(label = "security", security = "secret")
+ @Metadata(label = "security", security = "secret",
+ description = "The user name for HTTP basic authentication with
Solr, for all the endpoints. The username option"
+ + " of an endpoint replaces it.")
private String username;
- @Metadata(label = "security", security = "secret")
+ @Metadata(label = "security", security = "secret",
+ description = "The password for HTTP basic authentication with
Solr, for all the endpoints. The password option"
+ + " of an endpoint replaces it.")
private String password;
- @Metadata(label = "security")
+ @Metadata(label = "security",
+ description = "Whether the clients that Camel creates connect to
Solr with HTTPS instead of HTTP. The enableSSL"
+ + " option of an endpoint replaces it.")
private boolean enableSSL;
- @Metadata(label = "security")
+ @Metadata(label = "security",
+ description = "The TLS configuration (key store, trust store,
protocols, cipher suites, named groups) of the"
+ + " clients that Camel creates, for all the
endpoints. The sslContextParameters option of an endpoint"
+ + " replaces it.")
private SSLContextParameters sslContextParameters;
- @Metadata(label = "security", defaultValue = "false")
+ @Metadata(label = "security", defaultValue = "false",
+ description = "Whether the endpoints use the global SSL context
parameters of the CamelContext when neither the"
+ + " component nor the endpoint sets the
sslContextParameters option.")
private boolean useGlobalSslContextParameters;
public SolrComponent() {
@@ -95,10 +115,6 @@ public class SolrComponent extends DefaultComponent
implements SSLContextParamet
return endpoint;
}
- /**
- * To use an existing configured solr client, instead of creating a client
per endpoint. This allows customizing the
- * client with specific advanced settings.
- */
public SolrClient getSolrClient() {
return solrClient;
}
@@ -107,9 +123,6 @@ public class SolrComponent extends DefaultComponent
implements SSLContextParamet
this.solrClient = solrClient;
}
- /**
- * The solr instance host name
- */
public String getHost() {
return host;
}
@@ -118,9 +131,6 @@ public class SolrComponent extends DefaultComponent
implements SSLContextParamet
this.host = host;
}
- /**
- * The solr instance port number
- */
public int getPort() {
return port;
}
@@ -129,9 +139,6 @@ public class SolrComponent extends DefaultComponent
implements SSLContextParamet
this.port = port;
}
- /**
- * Solr default collection name
- */
public String getDefaultCollection() {
return defaultCollection;
}
@@ -140,9 +147,6 @@ public class SolrComponent extends DefaultComponent
implements SSLContextParamet
this.defaultCollection = defaultCollection;
}
- /**
- * The timeout in ms to wait before the socket will time out.
- */
public long getRequestTimeout() {
return requestTimeout;
}
@@ -151,9 +155,6 @@ public class SolrComponent extends DefaultComponent
implements SSLContextParamet
this.requestTimeout = requestTimeout;
}
- /**
- * The time in ms to wait before connection will time out.
- */
public long getConnectionTimeout() {
return connectionTimeout;
}
@@ -162,9 +163,6 @@ public class SolrComponent extends DefaultComponent
implements SSLContextParamet
this.connectionTimeout = connectionTimeout;
}
- /**
- * Basic authenticate user
- */
public String getUsername() {
return username;
}
@@ -173,9 +171,6 @@ public class SolrComponent extends DefaultComponent
implements SSLContextParamet
this.username = username;
}
- /**
- * Password for authenticating
- */
public String getPassword() {
return password;
}
@@ -184,9 +179,6 @@ public class SolrComponent extends DefaultComponent
implements SSLContextParamet
this.password = password;
}
- /**
- * Enable SSL
- */
public boolean isEnableSSL() {
return enableSSL;
}
@@ -199,10 +191,6 @@ public class SolrComponent extends DefaultComponent
implements SSLContextParamet
return sslContextParameters;
}
- /**
- * To configure security using SSLContextParameters. When configured, this
takes precedence over the
- * {@code certificatePath} option.
- */
public void setSslContextParameters(SSLContextParameters
sslContextParameters) {
this.sslContextParameters = sslContextParameters;
}
@@ -212,9 +200,6 @@ public class SolrComponent extends DefaultComponent
implements SSLContextParamet
return useGlobalSslContextParameters;
}
- /**
- * Enable usage of global SSL context parameters.
- */
@Override
public void setUseGlobalSslContextParameters(boolean
useGlobalSslContextParameters) {
this.useGlobalSslContextParameters = useGlobalSslContextParameters;
diff --git
a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrConfiguration.java
b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrConfiguration.java
index 1ca4a695f451..a15178cbe383 100644
---
a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrConfiguration.java
+++
b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrConfiguration.java
@@ -31,45 +31,84 @@ import org.apache.solr.client.solrj.SolrClient;
@UriParams
public class SolrConfiguration {
- @UriPath
+ @UriPath(description = "The host name of the Solr server. Set it to
default to use the host option of the component, or"
+ + " localhost when that is not set.")
@Metadata(required = true)
private String host;
- @UriPath(defaultValue = "" + SolrConstants.DEFAULT_PORT)
+ @UriPath(defaultValue = "" + SolrConstants.DEFAULT_PORT,
+ description = "The port of the Solr server. If not set, the port
option of the component is used, or 8983 when"
+ + " that is not set.")
private int port = -1;
- @UriPath(defaultValue = SolrConstants.DEFAULT_BASE_PATH)
+ @UriPath(defaultValue = SolrConstants.DEFAULT_BASE_PATH,
+ description = "The base path of the Solr server. A path that
starts with /solr/ sets the collection and the request"
+ + " handler instead: in /solr/products/update,
products is the collection and /update the request"
+ + " handler.")
private String basePath;
- @UriParam(label = "security", security = "secret")
+ @UriParam(label = "security", security = "secret",
+ description = "The user name for HTTP basic authentication with
Solr, used together with the password option by"
+ + " the client that Camel creates. Not used when
the solrClient option is set.")
private String username;
- @UriParam(label = "security", security = "secret")
+ @UriParam(label = "security", security = "secret",
+ description = "The password for HTTP basic authentication with
Solr, used together with the username option by"
+ + " the client that Camel creates. Not used when
the solrClient option is set.")
private String password;
- @UriParam
+ @UriParam(description = "The operation that the producer performs. The
CamelSolrOperation header replaces this option, and a"
+ + " body that is a SolrJ request, such as a
SolrQuery or an UpdateRequest, replaces both. If none is"
+ + " set, the body and the headers decide, for
example a Map body inserts a document.")
private SolrOperation operation;
- @UriParam
+ @UriParam(description = "Whether the producer adds the commit=true
parameter to each request, so that Solr commits an insert"
+ + " or a delete at once.")
private boolean autoCommit;
- @UriParam
+ @UriParam(description = "The maximum number of documents that a search
returns, which is the rows parameter of Solr (10 by"
+ + " default in Solr). The CamelSolrSize header
replaces this option. Not used for a QueryRequest"
+ + " body.")
private Integer size;
- @UriParam
+ @UriParam(description = "The index of the first document that a search
returns, which is the start parameter of Solr (0 by"
+ + " default in Solr). The CamelSolrFrom header
replaces this option. Not used for a QueryRequest"
+ + " body.")
private Integer from;
- @UriParam
+ @UriParam(description = "The name of the collection that the requests go
to. The CamelSolrCollection header replaces this"
+ + " option. If not set, the defaultCollection
option of the component is used, or the default"
+ + " collection of the solrClient.")
private String collection;
- @UriParam
+ @UriParam(description = "The path of the request handler, for example
/update/json. An insert or a delete sends the update"
+ + " request to it (/update when not set), and a
search sends it as the qt parameter. The"
+ + " CamelSolrRequestHandler header replaces this
option.")
private String requestHandler;
- @UriParam(defaultValue = "false")
+ @UriParam(defaultValue = "false",
+ description = "Whether a DELETE takes the body as a query, or a
collection of queries, instead of the id of the"
+ + " documents to delete. The
CamelSolrDeleteByQuery header replaces this option.")
private boolean deleteByQuery;
- @UriParam(label = "security")
+ @UriParam(label = "security",
+ description = "Whether the client that Camel creates connects to
Solr with HTTPS instead of HTTP.")
private boolean enableSSL;
- @UriParam(label = "security")
+ @UriParam(label = "security",
+ description = "The X.509 certificate of the certificate
authority that the client that Camel creates trusts for"
+ + " HTTPS. It is loaded from the classpath by
default, or with the classpath:, file: or http:"
+ + " prefix. Not used when the sslContextParameters
option is set.")
@Metadata(supportFileReference = true)
private String certificatePath;
- @UriParam(label = "security")
+ @UriParam(label = "security",
+ description = "The TLS configuration (key store, trust store,
protocols, cipher suites, named groups) of the client"
+ + " that Camel creates. It takes precedence over
the certificatePath option. If not set, the global"
+ + " SSL context parameters are used when the
useGlobalSslContextParameters option of the component"
+ + " is enabled.")
private SSLContextParameters sslContextParameters;
- @UriParam
+ @UriParam(description = "The time in milliseconds that the client that
Camel creates waits for the response to a request. If"
+ + " not set, the requestTimeout option of the
component is used.")
private Long requestTimeout;
- @UriParam
+ @UriParam(description = "The time in milliseconds that the client that
Camel creates waits to connect to Solr. If not set,"
+ + " the connectionTimeout option of the component
is used.")
private Long connectionTimeout;
- @UriParam(defaultValue = "true")
+ @UriParam(defaultValue = "true",
+ description = "Whether the producer sends the requests
asynchronously. This needs a client that extends"
+ + " HttpSolrClientBase, such as the
HttpJdkSolrClient that Camel creates; with another client the"
+ + " producer sends the requests synchronously.")
private boolean async = true;
- @UriParam
+ @UriParam(description = "To use a custom
org.apache.solr.client.solrj.SolrClient. When set, the host, port, basePath,"
+ + " username, password, enableSSL,
certificatePath, sslContextParameters, connectionTimeout and"
+ + " requestTimeout options do not configure the
client. If not set, Camel creates an"
+ + " HttpJdkSolrClient for the endpoint. Camel does
not close a client that is set.")
@Metadata(label = "advanced")
private SolrClient solrClient;
@@ -150,9 +189,6 @@ public class SolrConfiguration {
return host;
}
- /**
- * The solr instance host name (set to 'default' to use the host name
defined on component level)
- */
public void setHost(String host) {
this.host = host;
}
@@ -161,9 +197,6 @@ public class SolrConfiguration {
return port;
}
- /**
- * The solr instance base path (usually "/solr")
- */
public void setBasePath(String basePath) {
this.basePath = basePath;
}
@@ -172,9 +205,6 @@ public class SolrConfiguration {
return basePath;
}
- /**
- * The solr instance port number
- */
public void setPort(int port) {
this.port = port;
}
@@ -183,9 +213,6 @@ public class SolrConfiguration {
return operation;
}
- /**
- * What operation to perform
- */
public void setOperation(SolrOperation operation) {
this.operation = operation;
}
@@ -194,16 +221,10 @@ public class SolrConfiguration {
return autoCommit;
}
- /**
- * If true, each producer insert/delete operation will be automatically
performing a commit
- */
public void setAutoCommit(boolean autoCommit) {
this.autoCommit = autoCommit;
}
- /**
- * Starting index of the response.
- */
public Integer getFrom() {
return from;
}
@@ -212,9 +233,6 @@ public class SolrConfiguration {
this.from = from;
}
- /**
- * Size of the response.
- */
public Integer getSize() {
return size;
}
@@ -223,9 +241,6 @@ public class SolrConfiguration {
this.size = size;
}
- /**
- * The name of the collection to act against
- */
public String getCollection() {
return collection;
}
@@ -234,9 +249,6 @@ public class SolrConfiguration {
this.collection = collection;
}
- /**
- * The path of the update request handler (use for update requests / set
solr parameter qt for search requests)
- */
public String getRequestHandler() {
return requestHandler;
}
@@ -245,11 +257,6 @@ public class SolrConfiguration {
this.requestHandler = requestHandler;
}
- /**
- * 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.
- */
public SolrClient getSolrClient() {
return solrClient;
}
@@ -258,9 +265,6 @@ public class SolrConfiguration {
this.solrClient = solrClient;
}
- /**
- * For the delete instruction, interpret body as query/queries instead of
id/ids.
- */
public boolean isDeleteByQuery() {
return deleteByQuery;
}
@@ -269,9 +273,6 @@ public class SolrConfiguration {
this.deleteByQuery = deleteByQuery;
}
- /**
- * Basic authenticate user
- */
public String getUsername() {
return username;
}
@@ -280,9 +281,6 @@ public class SolrConfiguration {
this.username = username;
}
- /**
- * Password for authenticating
- */
public String getPassword() {
return password;
}
@@ -291,9 +289,6 @@ public class SolrConfiguration {
this.password = password;
}
- /**
- * Enable SSL
- */
public boolean isEnableSSL() {
return enableSSL;
}
@@ -302,10 +297,6 @@ public class SolrConfiguration {
this.enableSSL = enableSSL;
}
- /**
- * 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.
- */
public String getCertificatePath() {
return certificatePath;
}
@@ -318,18 +309,10 @@ public class SolrConfiguration {
return sslContextParameters;
}
- /**
- * To configure security using SSLContextParameters. When configured, this
takes precedence over the
- * {@code certificatePath} option. This allows configuring named groups,
signature schemes, cipher suites, and
- * protocols for the TLS connection.
- */
public void setSslContextParameters(SSLContextParameters
sslContextParameters) {
this.sslContextParameters = sslContextParameters;
}
- /**
- * The time in ms to wait before connection will time out.
- */
public Long getConnectionTimeout() {
return connectionTimeout;
}
@@ -338,9 +321,6 @@ public class SolrConfiguration {
this.connectionTimeout = connectionTimeout;
}
- /**
- * Use async request processing (when supported by the solr client)
- */
public boolean isAsync() {
return async;
}
@@ -349,9 +329,6 @@ public class SolrConfiguration {
this.async = async;
}
- /**
- * The time in ms to wait before the request will time out (former
soTimeout).
- */
public Long getRequestTimeout() {
return requestTimeout;
}
diff --git
a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrConstants.java
b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrConstants.java
index 1a786de7f013..3803b3854f1f 100644
---
a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrConstants.java
+++
b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrConstants.java
@@ -21,25 +21,40 @@ import org.apache.camel.spi.Metadata;
public interface SolrConstants {
- @Metadata(description = "The operation to perform.", javaType = "String")
+ @Metadata(description = "The operation to perform: INSERT, DELETE, SEARCH
or PING. It replaces the operation option, and a"
+ + " body that is a SolrJ request replaces it.
Older values such as DELETE_BY_QUERY or COMMIT still"
+ + " work, and log a warning.",
+ javaType = "String")
String PARAM_OPERATION = "CamelSolrOperation";
- @Metadata(description = "The collection to execute the request against.",
javaType = "String")
+ @Metadata(description = "The name of the collection that the request goes
to. It replaces the collection option.",
+ javaType = "String")
String PARAM_COLLECTION = "CamelSolrCollection";
- @Metadata(description = "The request handler to execute the solr request
against.", javaType = "String")
+ @Metadata(description = "The path of the request handler, for example
/update/json. It replaces the requestHandler option.",
+ javaType = "String")
String PARAM_REQUEST_HANDLER = "CamelSolrRequestHandler";
- @Metadata(description = "The query to execute.", javaType = "String")
+ @Metadata(description = "The query of a search. It replaces a text body,
but not a SolrQuery or QueryRequest body. When no"
+ + " operation is set, a message with this header
is a search.",
+ javaType = "String")
String PARAM_QUERY_STRING = "CamelSolrQueryString";
- @Metadata(description = "The size of the response.", javaType = "Integer")
+ @Metadata(description = "The maximum number of documents that a search
returns, which is the rows parameter of Solr. It"
+ + " replaces the size option.",
+ javaType = "Integer")
String PARAM_SIZE = "CamelSolrSize";
- @Metadata(description = "The starting index of the response.", javaType =
"Integer")
+ @Metadata(description = "The index of the first document that a search
returns, which is the start parameter of Solr. It"
+ + " replaces the from option.",
+ javaType = "Integer")
String PARAM_FROM = "CamelSolrFrom";
- @Metadata(description = "The solr parameters to use for the request.",
+ @Metadata(description = "The request parameters to send to Solr with an
insert, a delete or a search. The headers with the"
+ + " CamelSolrParam. prefix add to them.",
javaType = "org.apache.solr.common.params.SolrParams")
String PARAM_SOLR_PARAMS = "CamelSolrParams";
- @Metadata(description = "For the delete instruction, interpret body as
query/queries instead of id/ids.",
+ @Metadata(description = "Whether a DELETE takes the body as a query, or a
collection of queries, instead of the id of the"
+ + " documents to delete. It replaces the
deleteByQuery option.",
javaType = "boolean", defaultValue = "false")
String PARAM_DELETE_BY_QUERY = "CamelSolrDeleteByQuery";
- @Metadata(description = "The content type is used to identify the type
when inserting files.", javaType = "String")
+ @Metadata(description = "The content type of a file or text body to
insert, for example application/json. If not set, it"
+ + " is detected from the file or the text.",
+ javaType = "String")
String PARAM_CONTENT_TYPE = Exchange.CONTENT_TYPE;
@Metadata(description = "The prefix of the headers that carry the fields
of the document to insert: the header"
diff --git
a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
index 06c5ee7c0183..9ac0c408fa7b 100644
---
a/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
+++
b/components/camel-solr/src/main/java/org/apache/camel/component/solr/SolrEndpoint.java
@@ -49,7 +49,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
- * Perform operations against Apache Lucene Solr.
+ * Index, search and delete documents in Apache Solr.
*/
@UriEndpoint(firstVersion = "4.8.0", scheme = "solr", title = "Solr", syntax =
"solr:host:port/basePath", producerOnly = true,
category = { Category.SEARCH, Category.MONITORING }, headersClass
= SolrConstants.class)
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 15de362b6aa9..e1a8cb02530e 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -4842,7 +4842,7 @@ public interface ComponentsBuilderFactory {
}
/**
* Solr (camel-solr)
- * Perform operations against Apache Lucene Solr.
+ * Index, search and delete documents in Apache Solr.
*
* Category: search,monitoring
* Since: 4.8
diff --git
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SolrComponentBuilderFactory.java
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SolrComponentBuilderFactory.java
index 2c71f0638b62..00b24250344e 100644
---
a/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SolrComponentBuilderFactory.java
+++
b/dsl/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/SolrComponentBuilderFactory.java
@@ -24,7 +24,7 @@ import org.apache.camel.builder.component.ComponentBuilder;
import org.apache.camel.component.solr.SolrComponent;
/**
- * Perform operations against Apache Lucene Solr.
+ * Index, search and delete documents in Apache Solr.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -33,7 +33,7 @@ public interface SolrComponentBuilderFactory {
/**
* Solr (camel-solr)
- * Perform operations against Apache Lucene Solr.
+ * Index, search and delete documents in Apache Solr.
*
* Category: search,monitoring
* Since: 4.8
@@ -52,7 +52,9 @@ public interface SolrComponentBuilderFactory {
/**
- * The time in ms to wait before connection will time out.
+ * The time in milliseconds that the clients that Camel creates wait to
+ * connect to Solr. The connectionTimeout option of an endpoint
replaces
+ * it.
*
* The option is a: <code>long</code> type.
*
@@ -68,7 +70,7 @@ public interface SolrComponentBuilderFactory {
}
/**
- * Solr default collection name.
+ * The name of the collection, for the endpoints that set no
collection.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -83,7 +85,8 @@ public interface SolrComponentBuilderFactory {
}
/**
- * The solr instance host name.
+ * The host name of the Solr server, for the endpoints that set their
+ * host to default. If not set, these endpoints use localhost.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -123,7 +126,8 @@ public interface SolrComponentBuilderFactory {
}
/**
- * The solr instance port number.
+ * The port of the Solr server, for the endpoints that set no port. If
+ * not set, these endpoints use 8983.
*
* The option is a: <code>int</code> type.
*
@@ -139,7 +143,9 @@ public interface SolrComponentBuilderFactory {
/**
- * The timeout in ms to wait before the socket will time out.
+ * The time in milliseconds that the clients that Camel creates wait
for
+ * the response to a request. The requestTimeout option of an endpoint
+ * replaces it.
*
* The option is a: <code>long</code> type.
*
@@ -177,9 +183,10 @@ public interface SolrComponentBuilderFactory {
}
/**
- * To use an existing configured solr client, instead of creating a
- * client per endpoint. This allows customizing the client with
specific
- * advanced settings.
+ * To use a custom org.apache.solr.client.solrj.SolrClient for all the
+ * endpoints, instead of a client that Camel creates for each endpoint.
+ * The solrClient option of an endpoint replaces it. Camel does not
+ * close a client that is set or autowired.
*
* The option is a:
* <code>org.apache.solr.client.solrj.SolrClient</code>
@@ -197,7 +204,8 @@ public interface SolrComponentBuilderFactory {
/**
- * Enable SSL.
+ * Whether the clients that Camel creates connect to Solr with HTTPS
+ * instead of HTTP. The enableSSL option of an endpoint replaces it.
*
* The option is a: <code>boolean</code> type.
*
@@ -213,7 +221,8 @@ public interface SolrComponentBuilderFactory {
}
/**
- * Password for authenticating.
+ * The password for HTTP basic authentication with Solr, for all the
+ * endpoints. The password option of an endpoint replaces it.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -228,8 +237,10 @@ public interface SolrComponentBuilderFactory {
}
/**
- * To configure security using SSLContextParameters. When configured,
- * this takes precedence over the certificatePath option.
+ * The TLS configuration (key store, trust store, protocols, cipher
+ * suites, named groups) of the clients that Camel creates, for all the
+ * endpoints. The sslContextParameters option of an endpoint replaces
+ * it.
*
* The option is a:
*
<code>org.apache.camel.support.jsse.SSLContextParameters</code>
type.
@@ -246,7 +257,9 @@ public interface SolrComponentBuilderFactory {
/**
- * Enable usage of global SSL context parameters.
+ * Whether the endpoints use the global SSL context parameters of the
+ * CamelContext when neither the component nor the endpoint sets the
+ * sslContextParameters option.
*
* The option is a: <code>boolean</code> type.
*
@@ -262,7 +275,8 @@ public interface SolrComponentBuilderFactory {
}
/**
- * Basic authenticate user.
+ * The user name for HTTP basic authentication with Solr, for all the
+ * endpoints. The username option of an endpoint replaces it.
*
* The option is a: <code>java.lang.String</code> type.
*
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
index 90bac044516a..1bf4dddecf1e 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointHeaderBuilders.java
@@ -3829,7 +3829,7 @@ public class EndpointHeaderBuilders {
}
/**
* Solr (camel-solr)
- * Perform operations against Apache Lucene Solr.
+ * Index, search and delete documents in Apache Solr.
*
* Category: search,monitoring
* Since: 4.8
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index bdfd3601b28e..ae468c416872 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -16329,7 +16329,7 @@ public class StaticEndpointBuilders {
}
/**
* Solr (camel-solr)
- * Perform operations against Apache Lucene Solr.
+ * Index, search and delete documents in Apache Solr.
*
* Category: search,monitoring
* Since: 4.8
@@ -16338,15 +16338,18 @@ public class StaticEndpointBuilders {
* Syntax: <code>solr:host:port/basePath</code>
*
* Path parameter: host (required)
- * The solr instance host name (set to 'default' to use the host name
- * defined on component level)
+ * The host name of the Solr server. Set it to default to use the host
+ * option of the component, or localhost when that is not set.
*
* Path parameter: port
- * The solr instance port number
+ * The port of the Solr server. If not set, the port option of the
component
+ * is used, or 8983 when that is not set.
* Default value: 8983
*
* Path parameter: basePath
- * The solr instance base path (usually /solr)
+ * The base path of the Solr server. A path that starts with /solr/ sets
the
+ * collection and the request handler instead: in /solr/products/update,
+ * products is the collection and /update the request handler.
* Default value: /solr
*
* @param path host:port/basePath
@@ -16357,7 +16360,7 @@ public class StaticEndpointBuilders {
}
/**
* Solr (camel-solr)
- * Perform operations against Apache Lucene Solr.
+ * Index, search and delete documents in Apache Solr.
*
* Category: search,monitoring
* Since: 4.8
@@ -16366,15 +16369,18 @@ public class StaticEndpointBuilders {
* Syntax: <code>solr:host:port/basePath</code>
*
* Path parameter: host (required)
- * The solr instance host name (set to 'default' to use the host name
- * defined on component level)
+ * The host name of the Solr server. Set it to default to use the host
+ * option of the component, or localhost when that is not set.
*
* Path parameter: port
- * The solr instance port number
+ * The port of the Solr server. If not set, the port option of the
component
+ * is used, or 8983 when that is not set.
* Default value: 8983
*
* Path parameter: basePath
- * The solr instance base path (usually /solr)
+ * The base path of the Solr server. A path that starts with /solr/ sets
the
+ * collection and the request handler instead: in /solr/products/update,
+ * products is the collection and /update the request handler.
* Default value: /solr
*
* @param componentName to use a custom component name for the endpoint
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SolrEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SolrEndpointBuilderFactory.java
index 355f99db46b4..cdfdff3e5803 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SolrEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SolrEndpointBuilderFactory.java
@@ -27,7 +27,7 @@ import org.apache.camel.builder.EndpointProducerBuilder;
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
/**
- * Perform operations against Apache Lucene Solr.
+ * Index, search and delete documents in Apache Solr.
*
* Generated by camel build tools - do NOT edit this file!
*/
@@ -45,7 +45,10 @@ public interface SolrEndpointBuilderFactory {
}
/**
- * Use async request processing (when supported by the solr client).
+ * Whether the producer sends the requests asynchronously. This needs a
+ * client that extends HttpSolrClientBase, such as the
HttpJdkSolrClient
+ * that Camel creates; with another client the producer sends the
+ * requests synchronously.
*
* The option is a: <code>boolean</code> type.
*
@@ -60,7 +63,10 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * Use async request processing (when supported by the solr client).
+ * Whether the producer sends the requests asynchronously. This needs a
+ * client that extends HttpSolrClientBase, such as the
HttpJdkSolrClient
+ * that Camel creates; with another client the producer sends the
+ * requests synchronously.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -75,8 +81,8 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * If true, each producer insert/delete operation will be automatically
- * performing a commit.
+ * Whether the producer adds the commit=true parameter to each request,
+ * so that Solr commits an insert or a delete at once.
*
* The option is a: <code>boolean</code> type.
*
@@ -91,8 +97,8 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * If true, each producer insert/delete operation will be automatically
- * performing a commit.
+ * Whether the producer adds the commit=true parameter to each request,
+ * so that Solr commits an insert or a delete at once.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -107,7 +113,10 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * The name of the collection to act against.
+ * The name of the collection that the requests go to. The
+ * CamelSolrCollection header replaces this option. If not set, the
+ * defaultCollection option of the component is used, or the default
+ * collection of the solrClient.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -121,7 +130,9 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * The time in ms to wait before connection will time out.
+ * The time in milliseconds that the client that Camel creates waits to
+ * connect to Solr. If not set, the connectionTimeout option of the
+ * component is used.
*
* The option is a: <code>java.lang.Long</code> type.
*
@@ -135,7 +146,9 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * The time in ms to wait before connection will time out.
+ * The time in milliseconds that the client that Camel creates waits to
+ * connect to Solr. If not set, the connectionTimeout option of the
+ * component is used.
*
* The option will be converted to a <code>java.lang.Long</code> type.
*
@@ -149,8 +162,9 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * For the delete instruction, interpret body as query/queries instead
- * of id/ids.
+ * Whether a DELETE takes the body as a query, or a collection of
+ * queries, instead of the id of the documents to delete. The
+ * CamelSolrDeleteByQuery header replaces this option.
*
* The option is a: <code>boolean</code> type.
*
@@ -165,8 +179,9 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * For the delete instruction, interpret body as query/queries instead
- * of id/ids.
+ * Whether a DELETE takes the body as a query, or a collection of
+ * queries, instead of the id of the documents to delete. The
+ * CamelSolrDeleteByQuery header replaces this option.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -181,7 +196,9 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * Starting index of the response.
+ * The index of the first document that a search returns, which is the
+ * start parameter of Solr (0 by default in Solr). The CamelSolrFrom
+ * header replaces this option. Not used for a QueryRequest body.
*
* The option is a: <code>java.lang.Integer</code> type.
*
@@ -195,7 +212,9 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * Starting index of the response.
+ * The index of the first document that a search returns, which is the
+ * start parameter of Solr (0 by default in Solr). The CamelSolrFrom
+ * header replaces this option. Not used for a QueryRequest body.
*
* The option will be converted to a <code>java.lang.Integer</code>
* type.
@@ -210,7 +229,11 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * What operation to perform.
+ * The operation that the producer performs. The CamelSolrOperation
+ * header replaces this option, and a body that is a SolrJ request,
such
+ * as a SolrQuery or an UpdateRequest, replaces both. If none is set,
+ * the body and the headers decide, for example a Map body inserts a
+ * document.
*
* The option is a:
* <code>org.apache.camel.component.solr.SolrOperation</code> type.
@@ -225,7 +248,11 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * What operation to perform.
+ * The operation that the producer performs. The CamelSolrOperation
+ * header replaces this option, and a body that is a SolrJ request,
such
+ * as a SolrQuery or an UpdateRequest, replaces both. If none is set,
+ * the body and the headers decide, for example a Map body inserts a
+ * document.
*
* The option will be converted to a
* <code>org.apache.camel.component.solr.SolrOperation</code> type.
@@ -240,8 +267,10 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * The path of the update request handler (use for update requests /
set
- * solr parameter qt for search requests).
+ * The path of the request handler, for example /update/json. An insert
+ * or a delete sends the update request to it (/update when not set),
+ * and a search sends it as the qt parameter. The
+ * CamelSolrRequestHandler header replaces this option.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -255,8 +284,9 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * The time in ms to wait before the request will time out (former
- * soTimeout).
+ * The time in milliseconds that the client that Camel creates waits
for
+ * the response to a request. If not set, the requestTimeout option of
+ * the component is used.
*
* The option is a: <code>java.lang.Long</code> type.
*
@@ -270,8 +300,9 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * The time in ms to wait before the request will time out (former
- * soTimeout).
+ * The time in milliseconds that the client that Camel creates waits
for
+ * the response to a request. If not set, the requestTimeout option of
+ * the component is used.
*
* The option will be converted to a <code>java.lang.Long</code> type.
*
@@ -285,7 +316,9 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * Size of the response.
+ * The maximum number of documents that a search returns, which is the
+ * rows parameter of Solr (10 by default in Solr). The CamelSolrSize
+ * header replaces this option. Not used for a QueryRequest body.
*
* The option is a: <code>java.lang.Integer</code> type.
*
@@ -299,7 +332,9 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * Size of the response.
+ * The maximum number of documents that a search returns, which is the
+ * rows parameter of Solr (10 by default in Solr). The CamelSolrSize
+ * header replaces this option. Not used for a QueryRequest body.
*
* The option will be converted to a <code>java.lang.Integer</code>
* type.
@@ -314,9 +349,10 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * 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.
+ * The X.509 certificate of the certificate authority that the client
+ * that Camel creates trusts for HTTPS. It is loaded from the classpath
+ * by default, or with the classpath:, file: or http: prefix. Not used
+ * when the sslContextParameters option is set.
*
* This option can also be loaded from an existing file, by prefixing
* with file: or classpath: followed by the location of the file.
@@ -333,7 +369,8 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * Enable SSL.
+ * Whether the client that Camel creates connects to Solr with HTTPS
+ * instead of HTTP.
*
* The option is a: <code>boolean</code> type.
*
@@ -348,7 +385,8 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * Enable SSL.
+ * Whether the client that Camel creates connects to Solr with HTTPS
+ * instead of HTTP.
*
* The option will be converted to a <code>boolean</code> type.
*
@@ -363,7 +401,9 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * Password for authenticating.
+ * The password for HTTP basic authentication with Solr, used together
+ * with the username option by the client that Camel creates. Not used
+ * when the solrClient option is set.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -377,10 +417,11 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * To configure security using SSLContextParameters. When configured,
- * this takes precedence over the certificatePath option. This allows
- * configuring named groups, signature schemes, cipher suites, and
- * protocols for the TLS connection.
+ * The TLS configuration (key store, trust store, protocols, cipher
+ * suites, named groups) of the client that Camel creates. It takes
+ * precedence over the certificatePath option. If not set, the global
+ * SSL context parameters are used when the
+ * useGlobalSslContextParameters option of the component is enabled.
*
* The option is a:
* <code>org.apache.camel.support.jsse.SSLContextParameters</code>
type.
@@ -395,10 +436,11 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * To configure security using SSLContextParameters. When configured,
- * this takes precedence over the certificatePath option. This allows
- * configuring named groups, signature schemes, cipher suites, and
- * protocols for the TLS connection.
+ * The TLS configuration (key store, trust store, protocols, cipher
+ * suites, named groups) of the client that Camel creates. It takes
+ * precedence over the certificatePath option. If not set, the global
+ * SSL context parameters are used when the
+ * useGlobalSslContextParameters option of the component is enabled.
*
* The option will be converted to a
* <code>org.apache.camel.support.jsse.SSLContextParameters</code>
type.
@@ -413,7 +455,9 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * Basic authenticate user.
+ * The user name for HTTP basic authentication with Solr, used together
+ * with the password option by the client that Camel creates. Not used
+ * when the solrClient option is set.
*
* The option is a: <code>java.lang.String</code> type.
*
@@ -485,11 +529,12 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * 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.
+ * To use a custom org.apache.solr.client.solrj.SolrClient. When set,
+ * the host, port, basePath, username, password, enableSSL,
+ * certificatePath, sslContextParameters, connectionTimeout and
+ * requestTimeout options do not configure the client. If not set,
Camel
+ * creates an HttpJdkSolrClient for the endpoint. Camel does not close
a
+ * client that is set.
*
* The option is a:
<code>org.apache.solr.client.solrj.SolrClient</code>
* type.
@@ -504,11 +549,12 @@ public interface SolrEndpointBuilderFactory {
return this;
}
/**
- * 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.
+ * To use a custom org.apache.solr.client.solrj.SolrClient. When set,
+ * the host, port, basePath, username, password, enableSSL,
+ * certificatePath, sslContextParameters, connectionTimeout and
+ * requestTimeout options do not configure the client. If not set,
Camel
+ * creates an HttpJdkSolrClient for the endpoint. Camel does not close
a
+ * client that is set.
*
* The option will be converted to a
* <code>org.apache.solr.client.solrj.SolrClient</code> type.
@@ -527,7 +573,7 @@ public interface SolrEndpointBuilderFactory {
public interface SolrBuilders {
/**
* Solr (camel-solr)
- * Perform operations against Apache Lucene Solr.
+ * Index, search and delete documents in Apache Solr.
*
* Category: search,monitoring
* Since: 4.8
@@ -540,7 +586,7 @@ public interface SolrEndpointBuilderFactory {
}
/**
* Solr (camel-solr)
- * Perform operations against Apache Lucene Solr.
+ * Index, search and delete documents in Apache Solr.
*
* Category: search,monitoring
* Since: 4.8
@@ -549,15 +595,19 @@ public interface SolrEndpointBuilderFactory {
* Syntax: <code>solr:host:port/basePath</code>
*
* Path parameter: host (required)
- * The solr instance host name (set to 'default' to use the host name
- * defined on component level)
+ * The host name of the Solr server. Set it to default to use the host
+ * option of the component, or localhost when that is not set.
*
* Path parameter: port
- * The solr instance port number
+ * The port of the Solr server. If not set, the port option of the
+ * component is used, or 8983 when that is not set.
* Default value: 8983
*
* Path parameter: basePath
- * The solr instance base path (usually /solr)
+ * The base path of the Solr server. A path that starts with /solr/
sets
+ * the collection and the request handler instead: in
+ * /solr/products/update, products is the collection and /update the
+ * request handler.
* Default value: /solr
*
* @param path host:port/basePath
@@ -568,7 +618,7 @@ public interface SolrEndpointBuilderFactory {
}
/**
* Solr (camel-solr)
- * Perform operations against Apache Lucene Solr.
+ * Index, search and delete documents in Apache Solr.
*
* Category: search,monitoring
* Since: 4.8
@@ -577,15 +627,19 @@ public interface SolrEndpointBuilderFactory {
* Syntax: <code>solr:host:port/basePath</code>
*
* Path parameter: host (required)
- * The solr instance host name (set to 'default' to use the host name
- * defined on component level)
+ * The host name of the Solr server. Set it to default to use the host
+ * option of the component, or localhost when that is not set.
*
* Path parameter: port
- * The solr instance port number
+ * The port of the Solr server. If not set, the port option of the
+ * component is used, or 8983 when that is not set.
* Default value: 8983
*
* Path parameter: basePath
- * The solr instance base path (usually /solr)
+ * The base path of the Solr server. A path that starts with /solr/
sets
+ * the collection and the request handler instead: in
+ * /solr/products/update, products is the collection and /update the
+ * request handler.
* Default value: /solr
*
* @param componentName to use a custom component name for the endpoint
@@ -609,7 +663,10 @@ public interface SolrEndpointBuilderFactory {
public static final SolrHeaderNameBuilder INSTANCE = new
SolrHeaderNameBuilder();
/**
- * The operation to perform.
+ * The operation to perform: INSERT, DELETE, SEARCH or PING. It
replaces
+ * the operation option, and a body that is a SolrJ request replaces
it.
+ * Older values such as DELETE_BY_QUERY or COMMIT still work, and log a
+ * warning.
*
* The option is a: {@code String} type.
*
@@ -621,7 +678,8 @@ public interface SolrEndpointBuilderFactory {
return "CamelSolrOperation";
}
/**
- * The collection to execute the request against.
+ * The name of the collection that the request goes to. It replaces the
+ * collection option.
*
* The option is a: {@code String} type.
*
@@ -633,7 +691,8 @@ public interface SolrEndpointBuilderFactory {
return "CamelSolrCollection";
}
/**
- * The request handler to execute the solr request against.
+ * The path of the request handler, for example /update/json. It
+ * replaces the requestHandler option.
*
* The option is a: {@code String} type.
*
@@ -645,7 +704,9 @@ public interface SolrEndpointBuilderFactory {
return "CamelSolrRequestHandler";
}
/**
- * The query to execute.
+ * The query of a search. It replaces a text body, but not a SolrQuery
+ * or QueryRequest body. When no operation is set, a message with this
+ * header is a search.
*
* The option is a: {@code String} type.
*
@@ -657,7 +718,8 @@ public interface SolrEndpointBuilderFactory {
return "CamelSolrQueryString";
}
/**
- * The size of the response.
+ * The maximum number of documents that a search returns, which is the
+ * rows parameter of Solr. It replaces the size option.
*
* The option is a: {@code Integer} type.
*
@@ -669,7 +731,8 @@ public interface SolrEndpointBuilderFactory {
return "CamelSolrSize";
}
/**
- * The starting index of the response.
+ * The index of the first document that a search returns, which is the
+ * start parameter of Solr. It replaces the from option.
*
* The option is a: {@code Integer} type.
*
@@ -681,7 +744,8 @@ public interface SolrEndpointBuilderFactory {
return "CamelSolrFrom";
}
/**
- * The solr parameters to use for the request.
+ * The request parameters to send to Solr with an insert, a delete or a
+ * search. The headers with the CamelSolrParam. prefix add to them.
*
* The option is a: {@code org.apache.solr.common.params.SolrParams}
* type.
@@ -694,8 +758,9 @@ public interface SolrEndpointBuilderFactory {
return "CamelSolrParams";
}
/**
- * For the delete instruction, interpret body as query/queries instead
- * of id/ids.
+ * Whether a DELETE takes the body as a query, or a collection of
+ * queries, instead of the id of the documents to delete. It replaces
+ * the deleteByQuery option.
*
* The option is a: {@code boolean} type.
*
@@ -708,7 +773,9 @@ public interface SolrEndpointBuilderFactory {
return "CamelSolrDeleteByQuery";
}
/**
- * The content type is used to identify the type when inserting files.
+ * The content type of a file or text body to insert, for example
+ * application/json. If not set, it is detected from the file or the
+ * text.
*
* The option is a: {@code String} type.
*
diff --git a/tasks/component-descriptions.md b/tasks/component-descriptions.md
index 14c168e6da47..da5624302bd2 100644
--- a/tasks/component-descriptions.md
+++ b/tasks/component-descriptions.md
@@ -340,7 +340,7 @@ or removes its row.
| camel-smooks | smooks | |
| camel-smpp | smpp, smpps | |
| camel-snmp | snmp | |
-| camel-solr | solr | |
+| camel-solr | solr | yes |
| camel-spiffe | spiffe | |
| camel-splunk-hec | splunk-hec | |
| camel-spring | spring-event | yes |