You cannot directly import arbitrary XML. You'd have to read it into a program (look at SolrJ), parse and add it to SolrInputDocuments and send to Solr.
Alternately, you could read the XML and transform it to "solr friendly" XML and then index those files. A third possibility is to use the Data Import Handler and use the XSLTransformer.. Best Erick On Thu, Jan 19, 2012 at 10:54 AM, solr <lakshmi2...@gmail.com> wrote: > Hi gora, > thanks for your reply.am new to solr .I have been check solr tutorial.and > noticed example xmlfiles exampledcos folder in solr distribution. > 1.here indexing means importdata into solr? > If i want to start new example insted in solrdistribution.How to proceed. > Am bit confusing about solr concept.Especially about index xml data and > import xmldata.Both are same or diffrent if so please tell me if we have to > import xmdat aand steps to do and xmlformat > Anyhelp would be appriciate > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/How-to-import-data-from-xml-files-to-solr-tp3672193p3673284.html > Sent from the Solr - User mailing list archive at Nabble.com.