[
https://issues.apache.org/jira/browse/SOLR-3192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Linbin Chen updated SOLR-3192:
------------------------------
Attachment: solr.proto
> NettySolrClient (supported by netty/protobuf)
> ---------------------------------------------
>
> Key: SOLR-3192
> URL: https://issues.apache.org/jira/browse/SOLR-3192
> Project: Solr
> Issue Type: New Feature
> Affects Versions: 5.2.1
> Reporter: Linbin Chen
> Labels: netty
> Fix For: Trunk, 5x
>
> Attachments: SOLR-3192-for-5_2.patch, SOLR-3192-for-5x.patch,
> solr.proto
>
>
> 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)
> {code}
> port=8001
> {code}
> client
> {code:java}
> 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();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]