Hi,
If I understand you correctly, you really want to be constructing 
SolrInputDocuments (not Lucene's Documents) and indexing those with SolrJ.  I 
don't think there is anything in the API that can read in an XML file and 
convert it into a SolrInputDocuments instance, but aren't there libraries who 
can convert XML into Java objects and vice-versa?  Maybe that could be used.

Otis
--
Sematext is hiring -- http://sematext.com/about/jobs.html?mls
Lucene, Solr, Nutch, Katta, Hadoop, HBase, UIMA, NLP, NER, IR



----- Original Message ----
> From: Phanindra Reva <reva.phanin...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Fri, November 20, 2009 10:32:45 AM
> Subject: creating Lucene document from an external XML file.
> 
> Hello All,
>               I am a newbie using Solr and Lucene. In my task, I have
> to create org.apache.lucene.document.Document objects from external
> valid Solr xml files.To be brief, depending on the names of the fields
> I need to modify corresponding values which is specific to our
> project. So I would like to know whether there is an API exposed to
> create org.apache.lucene.document.Document type object directly from
> an external xml file because here in my case I need to make changes to
> the created Document object.
>         Please dont mind if it does not make sense.
> Thanks.

Reply via email to