SOLR-977 version must be set as 1

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@776960 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2009-05-21 06:01:24 +00:00
parent 6fe805f80b
commit 6ad33c1fb7
1 changed files with 1 additions and 3 deletions

View File

@ -260,9 +260,7 @@ public class CommonsHttpSolrServer extends SolrServer
// The parser 'wt=' and 'version=' params are used instead of the original params
ModifiableSolrParams wparams = new ModifiableSolrParams();
wparams.set( CommonParams.WT, parser.getWriterType() );
if(parser.getClass() != BinaryResponseParser.class ){
wparams.set( CommonParams.VERSION, parser.getVersion());
}
wparams.set( CommonParams.VERSION, parser.getVersion());
if( params == null ) {
params = wparams;
}