From 5dbcae4cd3e813bc876bcefc38dd45dbebac362d Mon Sep 17 00:00:00 2001 From: "Chris M. Hostetter" Date: Mon, 28 Jan 2013 18:03:26 +0000 Subject: [PATCH] SOLR-4342: Fix DataImportHandler stats to be a prper Map git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1439536 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 2 ++ .../org/apache/solr/handler/dataimport/DataImportHandler.java | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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());