Apache Lucene open-source search software
SOLR-2877: Adding explicit map constructor
Ryan McKinleyea4f87fd259e
diff --git a/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java b/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.javaindex 9002de2b877..0032fcfe21f 100644--- a/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java+++ b/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java@@ -41,6 +41,10 @@ public class SolrInputDocument implements Map<String,SolrInputField>, Iterable<S_fields = new LinkedHashMap<String,SolrInputField>();}+ public SolrInputDocument(Map<String,SolrInputField> fields) {+ _fields = fields;+ }+/*** Remove all fields and boosts from the document*/