bug fix and lucene 4.6.0 upgrade