org.apache.lucene.search

Class MultiSearcher

public class MultiSearcher extends Searcher

Implements search over a set of Searchables.

Applications usually need only call the inherited {@link #search(Query)} or {@link #search(Query,Filter)} methods.

Constructor Summary
MultiSearcher(Searchable[] searchables)
Creates a searcher which searches searchables.
Method Summary
voidclose()
Documentdoc(int n)
intdocFreq(Term term)
Explanationexplain(Query query, int doc)
protected int[]getStarts()
intmaxDoc()
Queryrewrite(Query original)
TopDocssearch(Query query, Filter filter, int nDocs)
TopFieldDocssearch(Query query, Filter filter, int n, Sort sort)
voidsearch(Query query, Filter filter, HitCollector results)
intsearcherIndex(int n)
Call {@link #subSearcher} instead.
intsubDoc(int n)
Returns the document number of document n within its sub-index.
intsubSearcher(int n)
Returns index of the searcher for document n in the array used to construct this searcher.

Constructor Detail

MultiSearcher

public MultiSearcher(Searchable[] searchables)
Creates a searcher which searches searchables.

Method Detail

close

public void close()

doc

public Document doc(int n)

docFreq

public int docFreq(Term term)

explain

public Explanation explain(Query query, int doc)

getStarts

protected int[] getStarts()

maxDoc

public int maxDoc()

rewrite

public Query rewrite(Query original)

search

public TopDocs search(Query query, Filter filter, int nDocs)

search

public TopFieldDocs search(Query query, Filter filter, int n, Sort sort)

search

public void search(Query query, Filter filter, HitCollector results)

searcherIndex

public int searcherIndex(int n)

Deprecated:

Call {@link #subSearcher} instead.

subDoc

public int subDoc(int n)
Returns the document number of document n within its sub-index.

subSearcher

public int subSearcher(int n)
Returns index of the searcher for document n in the array used to construct this searcher.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.