remove unnecessary cast
This commit is contained in:
parent
bd5ac9ce1a
commit
ba8de12429
|
@ -67,7 +67,7 @@ public class IndexSearcherWrapper {
|
||||||
if (elasticsearchDirectoryReader == null) {
|
if (elasticsearchDirectoryReader == null) {
|
||||||
throw new IllegalStateException("Can't wrap non elasticsearch directory reader");
|
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));
|
IndexSearcher innerIndexSearcher = new IndexSearcher(new CacheFriendlyReaderWrapper(reader, elasticsearchDirectoryReader));
|
||||||
innerIndexSearcher.setQueryCache(engineConfig.getQueryCache());
|
innerIndexSearcher.setQueryCache(engineConfig.getQueryCache());
|
||||||
innerIndexSearcher.setQueryCachingPolicy(engineConfig.getQueryCachingPolicy());
|
innerIndexSearcher.setQueryCachingPolicy(engineConfig.getQueryCachingPolicy());
|
||||||
|
|
Loading…
Reference in New Issue