I would like to make my application to interact with an Apache Solr sever using an AMQ queue (RabbitMQ or ActiveMQ). Therefore I would like to ask if there is any implementation of this kind, if not, where can I find information how to implement such a connector.
Share
Your integration case is one that might be suited to using Apache Camel. Camel allows you to create routes that link different systems together – in this case Solr (or even Lucene directly) and an AMQP broker.
For example, you may want to gain some additional efficiencies by hitting Lucene directly and leverage Camel’s Lucene component (see http://camel.apache.org/lucene.html ) and create a route such as:
In just those two lines a message would be retrieved from an AMQP queue, processed by Lucene and then replied back to. You could also continue using Solr’s REST API by leveraging Camel’s HTTP component, such as:
In that route you would fetch a message from an AMQP queue, marshal it as JSON or XML, send it to a Solr URI and then unmarshall the response back into an object.
There’s nothing pre-cooked that will give you this functionality out of the box, but you can leverage several integration frameworks to help you wire the systems together.