com.lucene.search
Class Searcher

java.lang.Object
  |
  +--com.lucene.search.Searcher
Direct Known Subclasses:
IndexSearcher, MultiSearcher

public abstract class Searcher
extends Object

The abstract base class for search implementations.

Subclasses implement search over a single index, over multiple indices, and over indices on remote servers.


Constructor Summary
Searcher()
           
 
Method Summary
abstract  void close()
          Frees resources associated with this Searcher.
 Hits search(Query query)
          Returns the documents matching query.
 Hits search(Query query, Filter filter)
          Returns the documents matching query and filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Searcher

public Searcher()
Method Detail

search

public final Hits search(Query query)
                  throws IOException
Returns the documents matching query.

search

public final Hits search(Query query,
                         Filter filter)
                  throws IOException
Returns the documents matching query and filter.

close

public abstract void close()
                    throws IOException
Frees resources associated with this Searcher.