![]() |
|
|
|
|
Change By:
|
Linbin Chen
(26/Aug/12 04:04)
|
|
Description:
|
solr support netty tcp, netty/tcp can handle asynchronous,efficient,keepalive ...
it's used on solr cloud or solrj
solr.proto maybe
{code:java} package org.apache.solr.common.netty; option java_package = "org.apache.solr.common.netty"; option java_outer_classname = "SolrProtocol"; option optimize_for = SPEED;
message SolrRequest {
//request id
required
int32
int64
rid = 1; //for string,
json format,
like http params required
bytes
string
params = 2; //(xml, json, solr_javabin) fix by params rt (request type) optional int32 streamsFormat = 3; repeated bytes streams = 4; }
message SolrResponse {
//response request id,
required
int32
int64
rid = 1; //response format (xml, json, solr_javabin, csv ...) optional int32 responseFormat = 2; optional bytes response = 3; optional int32 errorCode = 4; optional string errorStr = 5; } {code}
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe, e-mail:
[email protected]
For additional commands, e-mail:
[email protected]