I use org.apache.solr.client.solrj.util.ClientUtils to convert an SolrInputDocument into a XML string and send to a queue. Now I need to manipulate that xml in a consumer, Ideally I want to have the xml convert back to SolrInputDocument, So I can add/drop couple fields with its methods. Is there an easy way to achieve that? Or any suggestions?
I use org.apache.solr.client.solrj.util.ClientUtils to convert an SolrInputDocument into a XML string and send to
Share
you can generally use something like xstream/marshall API for this…that said, the XML that is output from the ClientUtils.toXML() call doesn’t work with this approach.
per this post…”this is best done programmatically”