remove the now redundant setResponseParser

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@711574 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2008-11-05 14:32:55 +00:00
parent f133519278
commit 12273bbdc2
1 changed files with 4 additions and 2 deletions

View File

@ -379,7 +379,7 @@ class HttpCommComponent {
// String url = "http://" + shard + "/select";
String url = "http://" + shard;
params.remove(CommonParams.WT); // use default (or should we explicitly set it?)
params.remove(CommonParams.WT); // use default (currently javabin)
params.remove(CommonParams.VERSION);
SolrServer server = new CommonsHttpSolrServer(url, client);
@ -387,7 +387,9 @@ class HttpCommComponent {
// use generic request to avoid extra processing of queries
QueryRequest req = new QueryRequest(params);
req.setMethod(SolrRequest.METHOD.POST);
req.setResponseParser(new BinaryResponseParser()); // this sets the wt param
// no need to set the response parser as binary is the default
// req.setResponseParser(new BinaryResponseParser());
// srsp.rsp = server.request(req);
// srsp.rsp = server.query(sreq.params);