mirror of https://github.com/apache/lucene.git
implements Searchable is redundant, as Searcher implements it
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150035 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fecc0d27af
commit
063c173eba
|
@ -67,7 +67,7 @@ import org.apache.lucene.index.Term;
|
|||
* <p>Applications usually need only call the inherited {@link #search(Query)}
|
||||
* or {@link #search(Query,Filter)} methods.
|
||||
*/
|
||||
public class IndexSearcher extends Searcher implements Searchable {
|
||||
public class IndexSearcher extends Searcher {
|
||||
IndexReader reader;
|
||||
|
||||
/** Creates a searcher searching the index in the named directory. */
|
||||
|
|
|
@ -64,7 +64,7 @@ import org.apache.lucene.index.Term;
|
|||
* <p>Applications usually need only call the inherited {@link #search(Query)}
|
||||
* or {@link #search(Query,Filter)} methods.
|
||||
*/
|
||||
public class MultiSearcher extends Searcher implements Searchable {
|
||||
public class MultiSearcher extends Searcher {
|
||||
private Searchable[] searchables;
|
||||
private int[] starts;
|
||||
private int maxDoc = 0;
|
||||
|
@ -194,7 +194,7 @@ public class MultiSearcher extends Searcher implements Searchable {
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public Query rewrite(Query original) throws IOException {
|
||||
Query[] queries = new Query[searchables.length];
|
||||
for (int i = 0; i < searchables.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue