Class Engine.Searcher

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

    public static final class Engine.Searcher
    extends java.lang.Object
    implements Releasable
    • Constructor Summary

      Constructors 
      Constructor Description
      Searcher​(java.lang.String source, org.apache.lucene.search.IndexSearcher searcher, java.io.Closeable onClose)  
    • Method Summary

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Searcher

        public Searcher​(java.lang.String source,
                        org.apache.lucene.search.IndexSearcher searcher,
                        java.io.Closeable onClose)
    • Method Detail

      • source

        public java.lang.String source()
        The source that caused this searcher to be acquired.
      • reader

        public org.apache.lucene.index.IndexReader reader()
      • getDirectoryReader

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

        public org.apache.lucene.search.IndexSearcher searcher()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface Releasable