Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6827

camel-solr support for solrj CloudSolrServer (solrcloud)

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      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();

      Attachments

        1. solr.zip
          5 kB
          Sebastian Bösl

        Activity

          People

            njiang Willem Jiang
            skyblender Marcos
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: