Added search function with Lucene.