How to index multiple XML files in Solr search?

gegealole

New Member
I am new to solr search. Please help how can I do this? I have been trying to search the phrase in the xml files for which i have to index the xml files which is present in some directory. I have tried something as below, the problem is it can fetch all the files but not indexing any of them. \[code\]<dataSource name="xml" type="FileDataSource" /> <document><entity name="document" processor="FileListEntityProcessor" baseDir="C:\Users\SUMIT\Desktop\xml" fileName=".*.xml" recursive="false" rootEntity="false" dataSource="xml"><entity processor="XPathEntityProcessor" url="${document.fileAbsolutePath}" useSolrAddSchema="true" stream="true"> </entity> </entity> </document> </dataConfig>\[/code\]The output was something like this.\[code\] <str name=""> Indexing completed. Added/Updated: 0 documents. Deleted 0 documents. </str>\[/code\]
 
Back
Top