diff --git a/src/java/org/apache/solr/common/SolrInputDocument.java b/src/java/org/apache/solr/common/SolrInputDocument.java index 67d5f2ea822..e300e674faa 100644 --- a/src/java/org/apache/solr/common/SolrInputDocument.java +++ b/src/java/org/apache/solr/common/SolrInputDocument.java @@ -20,6 +20,7 @@ package org.apache.solr.common; import java.io.Serializable; import java.util.HashMap; import java.util.Iterator; +import java.util.LinkedHashMap; import java.util.Map; import java.util.Collection; @@ -38,7 +39,7 @@ public class SolrInputDocument implements Iterable, Serializable public SolrInputDocument() { - _fields = new HashMap(); + _fields = new LinkedHashMap(); } /**