Fix QueryIndexUtils to not return duplicate resources
Sometimes duplicate entries get into the Lucene index and QueryIndexUtils should not return duplicate resource results.
Sometimes duplicate entries get into the Lucene index and QueryIndexUtils should not return duplicate resource results.