From 12273bbdc2fe73d4d3ab7a063ad5f341802e15e5 Mon Sep 17 00:00:00 2001 From: Yonik Seeley Date: Wed, 5 Nov 2008 14:32:55 +0000 Subject: [PATCH] remove the now redundant setResponseParser git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@711574 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/solr/handler/component/SearchHandler.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/solr/handler/component/SearchHandler.java b/src/java/org/apache/solr/handler/component/SearchHandler.java index c7160c0dee0..6f3f8829780 100644 --- a/src/java/org/apache/solr/handler/component/SearchHandler.java +++ b/src/java/org/apache/solr/handler/component/SearchHandler.java @@ -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);