SOLR-2877: Adding explicit map constructor

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1201900 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2011-11-14 21:09:01 +00:00
parent 04a9b55618
commit ea4f87fd25
1 changed files with 4 additions and 0 deletions

View File

@ -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
*/