[ 
https://issues.apache.org/jira/browse/CAMEL-6827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sebastian Bösl updated CAMEL-6827:
----------------------------------

    Attachment: solr.zip

Hi,

I also needed the SolrCloud for my current project, so I implemented the needed 
functionality based on the existing camel-solr component.

A short description:
The zookeeper ensemble is configured on component level (since it houldn't 
change)
I have added support for the "query" operation, which expects an input of type 
SolrParams and returns a SolrDocumentList

An endpoint url would then look like:
solrCloud://<collection>


> camel-solr support for solrj CloudSolrServer (solrcloud)
> --------------------------------------------------------
>
>                 Key: CAMEL-6827
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6827
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-solr
>            Reporter: Marcos
>            Priority: Minor
>              Labels: camel-solr, cloudsolrserver, solrj
>         Attachments: solr.zip
>
>
> Would be great to be able to send camel messages to a solrcloud which uses 
> zookeeper. To do this we need to be able to create a cloud solr server, which 
> then finds out which server is the lead, then sends the solr queries, etc.
> http://wiki.apache.org/solr/Solrj
> import org.apache.solr.client.solrj.impl.CloudSolrServer;
> import org.apache.solr.common.SolrInputDocument;
> CloudSolrServer server = new CloudSolrServer("localhost:9983");
> server.setDefaultCollection("collection1");
> SolrInputDocument doc = new SolrInputDocument();
> doc.addField( "id", "1234");
> doc.addField( "name", "A lovely summer holiday");
> server.add(doc);
> server.commit();



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to