index build and search using Lucene