mirror of https://github.com/apache/lucene.git
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:
parent
d47a11f077
commit
6ff799d4b3
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue