lucene integration for search and indexing