test for searching after committing data to Lucene