If I have individual files in the expected Solr format (having just ONE doc per file):
<add>
<doc>
<field name="id">GB18030TEST</field>
<field name="name">Test with some GB18030 encoded characters</field>
<field name="features">No accents here</field>
<field name="features">?aê?ò???1|?ü</field>
<field name="price">0</field>
</doc>
</add>
Is not there a way to easily marshal that file into a SolrInputDocument? Do I have to do the parsing myself?
EDIT: I need it in java pojo cause I want to modify some fields before indexing it with SolrJ...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…