SOLR-439 -- SolrInputDocument should preserve Field addition order

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@604951 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2007-12-17 18:14:38 +00:00
parent 66b05d1da5
commit e3ce5f2c7d
1 changed files with 2 additions and 1 deletions

View File

@ -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<SolrInputField>, Serializable
public SolrInputDocument()
{
_fields = new HashMap<String,SolrInputField>();
_fields = new LinkedHashMap<String,SolrInputField>();
}
/**