Class Engine.Searcher

  • All Implemented Interfaces:, java.lang.AutoCloseable, Releasable
    Enclosing class:

    public static final class Engine.Searcher
    implements Releasable
    • Nested Class Summary

      • Nested classes/interfaces inherited from class
    • Field Summary

      • Fields inherited from class

        leafContexts, readerContext
    • Constructor Summary

      Constructor Description
      Searcher​(java.lang.String source, org.apache.lucene.index.IndexReader reader, similarity, queryCache, queryCachingPolicy, onClose)  
    • Method Summary

      Modifier and Type Method Description
      void close()  
      org.apache.lucene.index.DirectoryReader getDirectoryReader()  
      java.lang.String source()
      The source that caused this searcher to be acquired.
      • Methods inherited from class

        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 Detail

      • Searcher

        public Searcher​(java.lang.String source,
                        org.apache.lucene.index.IndexReader reader,
    • Method Detail

      • source

        public java.lang.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 java.lang.AutoCloseable
        Specified by:
        close in interface
        Specified by:
        close in interface Releasable