On 13 June 2012 00:50, Jack Krupansky <j...@basetechnology.com> 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 {} [...]
The above should end with a "\;", i.e., find /data -name '*.xml' -exec java -jar post.jar {} \; You can handle multiple posts to Solr in parallel if you couple this with xargs. This also assumes a UNIX system, but on most other systems you could write a script that handles the recursion into sub-directories, and posts each file. Regards, Gora