Hello, I believe what you want is DirectXMLRequest.
http://lucene.apache.org/solr/api/org/apache/solr/client/solrj/request/DirectXmlRequest.html Cheers, Giovanni On 4/1/09, Radha C. <cra...@ceiindia.com> wrote: > > Hi All, > > I want to index the document fields in a xml file to index using solrj. I > know how to index the document fields using doc.addfield(). But I dont know > how to post the xml document instead of adding each field in solrj. > > Can I index xml file using solrj? Can anyone help me in how to do this? > > Thanks, >