: Is not there a way to easily marshal that file into a SolrInputDocument? Do
: I have to do the parsing myself?
:  
: I need them in java pojo cause I want to modify some fields before indexing.
: I would think that is possible with built in methods in Solr but cannot find
: a way.

the class that does this in Solr is the XMLLoader, but it's not really 
designed to be used client side.  

There are SolrJ methods to serialze *too* xml from a POJO, or sometimes 
clients use external systems to generate the XML and cache it, and then 
stream it to Solr, but you're the first person i've ever seen ask about 
serializng to Solr's XML format on the client, then parse it again, then 
send the SolrInputDocument to Solr (seems like a lot of 
gratuitious serialize/desrialze/serialise/etc...)


-Hoss

Reply via email to