camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-6827) camel-solr support for solrj CloudSolrServer (solrcloud)
Date Tue, 15 Jul 2014 11:57:05 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-6827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14061975#comment-14061975
] 

Willem Jiang edited comment on CAMEL-6827 at 7/15/14 11:56 AM:
---------------------------------------------------------------

Hi Doug, 

I just merged you patch into camel master branch, I think you forgot to add the solr-no-core.xml
into the repo,  I used the [file|https://apache.googlesource.com/lucene-solr/+/9daacc9f6fcff9913117e6ce2554427e89ef5850/solr/contrib/morphlines-core/src/test-files/solr/solr-no-core.xml]
to fill the gap, and the all the tests passed.  Please double check the solr-no-core.xml to
see if I missed something.

Now we need to update [the wiki page|http://camel.apache.org/solr] for this new feature, do
you mind to update the page?

BTW, I also did some clean up of the code,  you can find my changes by checking out the commit
history.

Regards,

Willem


was (Author: njiang):
Hi Doug, 

I just merged you patch into camel master branch, I think you forgot to add the solr-no-core.xml
into the repo,  I used the [file|https://apache.googlesource.com/lucene-solr/+/9daacc9f6fcff9913117e6ce2554427e89ef5850/solr/contrib/morphlines-core/src/test-files/solr/solr-no-core.xml]
to fill the gap, and the all the tests passed.  Please double check the solr-no-core.xml to
see if I missed something.

BTW, I also did some clean up of the code,  you can find my changes by checking out the commit
history.

Regards,

Willem

> 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
>            Assignee: Willem Jiang
>              Labels: camel-solr, cloudsolrserver, solrj
>             Fix For: 2.14.0
>
>         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)

Mime
View raw message