This patch adds a Solr component to Camel, which currently just supports indexing.
Users can configure how data is mapped to fields in their Solr schema by setting headers on the message. Any request handler can be specified as an Endpoint option (the default handler for XML; CSV handler; extracting handler for PDF, DOC etc.), so most common filetypes are supported.
This component uses SolrJ to connect to a Solr instance and the underlying API is exposed to allow users to configure the Solr connection on the Endpoint.
All the work is done by a Producer as it didn't seem necessary to create a Consumer specifically for Solr when an HTTP endpoint could do the job just as well.
This patch was made by Alex Cowell and Bilgin Ibryam and we are grateful to our employer, Sourcesense, for letting us contribute to this project during company time.