SOLR-3037: simplify method as suggested by Jörg Maier

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1292690 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sami Siren 2012-02-23 08:07:06 +00:00
parent d47a11f077
commit 6ff799d4b3
2 changed files with 2 additions and 10 deletions

View File

@ -321,7 +321,7 @@ Bug Fixes
* SOLR-1520: QueryElevationComponent now supports non-string ids (gsingers)
* SOLR-3037: When using binary format in solrj the codec screws up parameters
(Sami Siren via yonik)
(Sami Siren, Jörg Maier via yonik)
* SOLR-3062: A join in the main query was not respecting any filters pushed
down to it via acceptDocs since LUCENE-1536. (Mike Hugo, yonik)

View File

@ -200,15 +200,7 @@ public class JavaBinUpdateRequestCodec {
private NamedList solrParamsToNamedList(SolrParams params) {
if (params == null) return new NamedList();
Iterator<String> it = params.getParameterNamesIterator();
NamedList nl = new NamedList();
while (it.hasNext()) {
String s = it.next();
for(String val: params.getParams(s)) {
nl.add(s, val);
}
}
return nl;
return params.toNamedList();
}
public static interface StreamingUpdateHandler {