SOLR-3170: don't use default params

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1294400 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2012-02-27 23:48:22 +00:00
parent a766b67aed
commit 7464d5360b
1 changed files with 5 additions and 3 deletions

View File

@ -268,11 +268,13 @@ public class CommonsHttpSolrServer extends SolrServer
}
// The parser 'wt=' and 'version=' params are used instead of the original params
ModifiableSolrParams wparams = new ModifiableSolrParams();
ModifiableSolrParams wparams = new ModifiableSolrParams(params);
wparams.set( CommonParams.WT, parser.getWriterType() );
wparams.set( CommonParams.VERSION, parser.getVersion());
params = SolrParams.wrapDefaults(wparams, params);
params = SolrParams.wrapDefaults(_invariantParams, params);
if (_invariantParams != null) {
wparams.add( _invariantParams );
}
params = wparams;
int tries = _maxRetries + 1;
try {