Class Engine.Searcher

java.lang.Object
org.apache.lucene.search.IndexSearcher
org.elasticsearch.index.engine.Engine.Searcher
All Implemented Interfaces:
Closeable, AutoCloseable, org.elasticsearch.core.Releasable
Enclosing class:
Engine

public static final class Engine.Searcher extends org.apache.lucene.search.IndexSearcher implements org.elasticsearch.core.Releasable
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.lucene.search.IndexSearcher

    org.apache.lucene.search.IndexSearcher.LeafSlice
  • Field Summary

    Fields inherited from class org.apache.lucene.search.IndexSearcher

    leafContexts, readerContext
  • Constructor Summary

    Constructors
    Constructor
    Description
    Searcher(String source, org.apache.lucene.index.IndexReader reader, org.apache.lucene.search.similarities.Similarity similarity, org.apache.lucene.search.QueryCache queryCache, org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy, Closeable onClose)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.apache.lucene.index.DirectoryReader
     
    The source that caused this searcher to be acquired.

    Methods inherited from class org.apache.lucene.search.IndexSearcher

    collectionStatistics, count, createWeight, doc, doc, doc, explain, explain, getDefaultQueryCache, getDefaultQueryCachingPolicy, getDefaultSimilarity, getExecutor, getIndexReader, getQueryCache, getQueryCachingPolicy, getSimilarity, getSlices, getTopReaderContext, rewrite, search, search, search, search, search, search, searchAfter, searchAfter, searchAfter, setDefaultQueryCache, setDefaultQueryCachingPolicy, setQueryCache, setQueryCachingPolicy, setSimilarity, slices, termStatistics, termStatistics, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Searcher

      public Searcher(String source, org.apache.lucene.index.IndexReader reader, org.apache.lucene.search.similarities.Similarity similarity, org.apache.lucene.search.QueryCache queryCache, org.apache.lucene.search.QueryCachingPolicy queryCachingPolicy, Closeable onClose)
  • Method Details

    • source

      public String source()
      The source that caused this searcher to be acquired.
    • getDirectoryReader

      public org.apache.lucene.index.DirectoryReader getDirectoryReader()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.elasticsearch.core.Releasable