1 package org.apache.lucene.search; 2 3 18 19 import java.io.IOException ; 20 21 import org.apache.lucene.document.Document; 22 import org.apache.lucene.index.Term; 23 import org.apache.lucene.index.IndexReader; 25 35 public interface Searchable extends java.rmi.Remote { 36 52 void search(Weight weight, Filter filter, HitCollector results) 53 throws IOException ; 54 55 58 void search(Query query, Filter filter, HitCollector results) 59 throws IOException ; 60 61 65 void close() throws IOException ; 66 67 71 int docFreq(Term term) throws IOException ; 72 73 77 int[] docFreqs(Term[] terms) throws IOException ; 78 79 83 int maxDoc() throws IOException ; 84 85 94 TopDocs search(Weight weight, Filter filter, int n) throws IOException ; 95 96 99 TopDocs search(Query query, Filter filter, int n) throws IOException ; 100 101 105 Document doc(int i) throws IOException ; 106 107 110 Query rewrite(Query query) throws IOException ; 111 112 123 Explanation explain(Weight weight, int doc) throws IOException ; 124 125 128 Explanation explain(Query query, int doc) throws IOException ; 129 130 139 TopFieldDocs search(Weight weight, Filter filter, int n, Sort sort) 140 throws IOException ; 141 142 145 TopFieldDocs search(Query query, Filter filter, int n, Sort sort) 146 throws IOException ; 147 } 148 | Popular Tags |