--- lucene-1.4.2/src/java/org/apache/lucene/search/Searcher.java Mon Mar 29 14:48:04 2004 +++ lucene-1.4.2-patched/src/java/org/apache/lucene/search/Searcher.java Sat Oct 2 12:31:44 2004 @@ -17,6 +17,8 @@ */ import java.io.IOException; +import org.apache.lucene.index.Term; +import org.apache.lucene.document.Document; /** An abstract base class for search implementations. * Implements some common utility methods. @@ -85,4 +87,31 @@ public Similarity getSimilarity() { return this.similarity; } + + abstract public void close() + throws IOException; + + abstract public int docFreq(Term term) + throws IOException; + + abstract public int maxDoc() + throws IOException; + + abstract public Document doc(int i) + throws IOException; + + abstract public Query rewrite(Query query) + throws IOException; + + abstract public Explanation explain(Query query, int doc) + throws IOException; + + abstract public void search(Query query, Filter filter, HitCollector results) + throws IOException; + + abstract public TopDocs search(Query query, Filter filter, int n) + throws IOException; + + abstract public TopFieldDocs search(Query query, Filter filter, int n, Sort sort) + throws IOException; }