first implementation of lucene indexing