Testing the performance of indexing and searching with Lucene.