diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index d1d8d2f5186..88e801600e2 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -93,6 +93,8 @@ Bug Fixes * SOLR-3926: Solr should support better way of finding active sorts (Eirik Lygre via Erick Erickson) +* SOLR-4342: Fix DataImportHandler stats to be a prper Map (hossman) + Optimizations ---------------------- diff --git a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DataImportHandler.java b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DataImportHandler.java index 4fc06526269..fa791294ab8 100644 --- a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DataImportHandler.java +++ b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DataImportHandler.java @@ -25,6 +25,7 @@ import org.apache.solr.common.params.SolrParams; import org.apache.solr.common.params.UpdateParams; import org.apache.solr.common.util.ContentStreamBase; import org.apache.solr.common.util.NamedList; +import org.apache.solr.common.util.SimpleOrderedMap; import org.apache.solr.common.util.ContentStream; import org.apache.solr.common.util.StrUtils; import org.apache.solr.util.SystemIdResolver; @@ -247,7 +248,7 @@ public class DataImportHandler extends RequestHandlerBase implements return super.getStatistics(); DocBuilder.Statistics cumulative = importer.cumulativeStatistics; - NamedList result = new NamedList(); + SimpleOrderedMap result = new SimpleOrderedMap(); result.add("Status", importer.getStatus().toString());