Revision 48927
Added by Claudio Atzori over 6 years ago
modules/dnet-index-solr-common/trunk/src/main/java/eu/dnetlib/functionality/index/solr/feed/StreamingInputDocumentFactory.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import java.io.StringReader; |
4 | 4 |
import java.io.StringWriter; |
5 |
import java.util.HashMap; |
|
5 | 6 |
import java.util.Iterator; |
6 | 7 |
import java.util.List; |
7 | 8 |
import javax.xml.stream.*; |
... | ... | |
98 | 99 |
|
99 | 100 |
XMLEventReader parser = inputFactory.get().createXMLEventReader(new StringReader(inputDocument)); |
100 | 101 |
|
101 |
final SolrInputDocument indexDocument = new SolrInputDocument(); |
|
102 |
final SolrInputDocument indexDocument = new SolrInputDocument(new HashMap<>());
|
|
102 | 103 |
|
103 | 104 |
while (parser.hasNext()) { |
104 | 105 |
final XMLEvent event = parser.nextEvent(); |
Also available in: Unified diff
using empty map constructor for org.apache.solr.common.SolrInputDocument