mirror of https://github.com/apache/lucene.git
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:
parent
a766b67aed
commit
7464d5360b
|
@ -268,11 +268,13 @@ public class CommonsHttpSolrServer extends SolrServer
|
||||||
}
|
}
|
||||||
|
|
||||||
// The parser 'wt=' and 'version=' params are used instead of the original params
|
// 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.WT, parser.getWriterType() );
|
||||||
wparams.set( CommonParams.VERSION, parser.getVersion());
|
wparams.set( CommonParams.VERSION, parser.getVersion());
|
||||||
params = SolrParams.wrapDefaults(wparams, params);
|
if (_invariantParams != null) {
|
||||||
params = SolrParams.wrapDefaults(_invariantParams, params);
|
wparams.add( _invariantParams );
|
||||||
|
}
|
||||||
|
params = wparams;
|
||||||
|
|
||||||
int tries = _maxRetries + 1;
|
int tries = _maxRetries + 1;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue