Fix error with Lucene Index in select clauses.