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