If they aren't Solr XML format, but you can write an XSLT to transform it to Solr XML, you can use this: <http://wiki.apache.org/solr/XsltUpdateRequestHandler>
Erik On Jun 12, 2012, at 15:20 , Jack Krupansky wrote: > There isn't a recursion option for post.jar (I did check.) > > Maybe your best bet is the "find" shell command. This may not be 100% > correct, but something like: > > find /data -name '*.xml' -exec java -jar post.jar {} > > This is assuming that these are pre-formatted Solr XML update files with > "<doc>" and "<add>". > > If they are not in solr xml format and require translation, DIH with > FileDataSource and FileListEntityProcessor ihc supports recursion hwmay be > the way to go: > http://wiki.apache.org/solr/DataImportHandler#FileListEntityProcessor > > -- Jack Krupansky > > -----Original Message----- From: Bruno Mannina > Sent: Tuesday, June 12, 2012 3:06 AM > To: solr-user@lucene.apache.org > Subject: Indexing Data option for subdirectories? > > Dear All, > > Is exist a way to index data under sub-directories directly? > > I have several files under sub-directories like: > /data/A/001/*.xml > /data/A/002/*.xml > /data/A/003/*.xml > /data/A/004/*.xml > ... > /data/B/001/*.xml > ... > > /data/Z/999/*.xml > > I would like to index directly with > > *i.e. java -jar post.jar -R /data* > > Is it possible? > > thanks a lot, > Bruno