remove unnecessary cast

This commit is contained in:
Simon Willnauer 2015-10-13 14:57:51 +02:00
parent bd5ac9ce1a
commit ba8de12429
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ public class IndexSearcherWrapper {
if (elasticsearchDirectoryReader == null) {
throw new IllegalStateException("Can't wrap non elasticsearch directory reader");
}
DirectoryReader reader = wrap((DirectoryReader)engineSearcher.reader());
DirectoryReader reader = wrap(engineSearcher.reader());
IndexSearcher innerIndexSearcher = new IndexSearcher(new CacheFriendlyReaderWrapper(reader, elasticsearchDirectoryReader));
innerIndexSearcher.setQueryCache(engineConfig.getQueryCache());
innerIndexSearcher.setQueryCachingPolicy(engineConfig.getQueryCachingPolicy());