Code for building company lucene index