Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3192

NettySolrClient (supported by netty/protobuf)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.2.1
    • 6.0
    • None

    Description

      solr support netty tcp, netty/tcp can handle asynchronous,efficient,keepalive ...

      it's used on solr cloud or solrj

      usage:

      start netty server:

      add netty.properties in solr_home (sush as: server/solr)

      port=8001
      

      client

      public void use_netty_client_demo() throws IOException, SolrServerException {
        SolrClient solrClient = new NettySolrClient("localhost", 8001);
        SolrQuery query = new SolrQuery("*:*");
      
        QueryResponse response = solrClient.query("collection1", query);
      
        System.out.println(response.getResults());
      
        solrClient.close();
      }
      

      Attachments

        1. solr.proto
          1 kB
          Linbin Chen
        2. SOLR-3192-for-5_2.patch
          436 kB
          Linbin Chen
        3. SOLR-3192-for-5x.patch
          436 kB
          Linbin Chen

        Activity

          People

            Unassigned Unassigned
            chenlb Linbin Chen
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: