refactor find method on Lucene index