You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ry...@apache.org on 2011/11/14 22:09:01 UTC

svn commit: r1201900 - /lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java

Author: ryan
Date: Mon Nov 14 21:09:01 2011
New Revision: 1201900

URL: http://svn.apache.org/viewvc?rev=1201900&view=rev
Log:
SOLR-2877:  Adding explicit map constructor

Modified:
    lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java

Modified: lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java?rev=1201900&r1=1201899&r2=1201900&view=diff
==============================================================================
--- lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java (original)
+++ lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/SolrInputDocument.java Mon Nov 14 21:09:01 2011
@@ -41,6 +41,10 @@ public class SolrInputDocument implement
     _fields = new LinkedHashMap<String,SolrInputField>();
   }
   
+  public SolrInputDocument(Map<String,SolrInputField> fields) {
+    _fields = fields;
+  }
+  
   /**
    * Remove all fields and boosts from the document
    */