Fixing search by lucene index