automatically (re)index files inside a folder using Apache Lucene