Class QueryContext

All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, Cloneable, Map

public class QueryContext extends IdentityHashMap implements Closeable
See Also:
  • Constructor Details

    • QueryContext

      public QueryContext(org.apache.lucene.search.IndexSearcher searcher)
  • Method Details

    • newContext

      public static QueryContext newContext(org.apache.lucene.search.IndexSearcher searcher)
    • searcher

      public SolrIndexSearcher searcher()
    • indexSearcher

      public org.apache.lucene.search.IndexSearcher indexSearcher()
    • addCloseHook

      public void addCloseHook(Closeable closeable)
    • removeCloseHook

      public boolean removeCloseHook(Closeable closeable)
    • close

      public void close() throws IOException
      Don't call close explicitly! This will be automatically closed at the end of the request
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException