implementation for searching after committing data to Lucene