[Lucene] Fixing the rebuildIndex API?