...
The following Solr operations are currently supported. Simply set an exchange header with a key of "SolrOperation" and a value set to one of the following. Some operations also require the message body to be set.
- the INSERT operations use the CommonsHttpSolrServer
- the INSERT_STREAMING operations use the StreamingUpdateSolrServer (Camel 2.10)
operation | message body | description | |||||
---|---|---|---|---|---|---|---|
INSERT/INSERT_STREAMING | n/a | adds an index using message headers (must be prefixed with "SolrField.") | |||||
INSERT/INSERT_STREAMING | File | adds an index using the given File (using ContentStreamUpdateRequest) | |||||
INSERT/INSERT_STREAMING | SolrInputDocument | Camel 2.10 adds an updates index based on the given SolrInputDocument | |||||
INSERT_STREAMINGn/a | Camel 2.10 uses the StreamingUpdateSolrServer to add an index using message headers (must be prefixed with "SolrField.") | INSERT_STREAMING | FileString XML | Camel 2.10 uses the StreamingUpdateSolrServer to add an index using the given File (using ContentStreamUpdateRequest) | INSERT_STREAMING | SolrInputDocument | Camel 2.10 uses the StreamingUpdateSolrServer to add an index updates index based on the given XML (must follow SolrInputDocument format) |
ADD_BEAN | bean instance | adds an index based on values in an annotated bean | |||||
DELETE_BY_ID | index id to delete | delete a record by ID | |||||
DELETE_BY_QUERY | query string | delete a record by a query | |||||
COMMIT | n/a | performs a commit on any pending index changes | |||||
ROLLBACK | n/a | performs a rollback on any pending index changes | |||||
OPTIMIZE | n/a | performs a commit on any pending index changes and then runs the optimize command |
...