diff --git a/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java b/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java index 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, Iterable(); } + public SolrInputDocument(Map fields) { + _fields = fields; + } + /** * Remove all fields and boosts from the document */