String xml = null;//load the file to the xml string
DirectXmlRequest up = new DirectXmlRequest( "/update", xml );
solrServer.request( up );

On Wed, Mar 11, 2009 at 2:19 PM, Ashish P <ashish.ping...@gmail.com> wrote:
>
> I have an XML file with structure :
> <documents>
>   <doc>...</doc>
>   <doc>...</doc>
>   .
>   .
> </documents>
>
> It is present on disk on some location let's say C:\\documents.xml
>
> Q.1. Using solrJ can I index all docs in this file directly?? or do I have
> to convert each document to solrInputDocument by parsing XML
>
> Q.2 How to use DirectXmlRequest?? any example
>
> Thanks in advance...
> Ashish
>
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/SolrJ-XML-indexing-tp22450845p22450845.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



-- 
--Noble Paul

Reply via email to