added flag to turn off Lucene