From ea4f87fd259edf216a573faecc78902b7171c4e5 Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Mon, 14 Nov 2011 21:09:01 +0000 Subject: [PATCH] SOLR-2877: Adding explicit map constructor git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1201900 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/solr/common/SolrInputDocument.java | 4 ++++ 1 file changed, 4 insertions(+) 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 */