C# Class Lucene.Net.Search.MultiSearcher

Implements search over a set of Searchables.

Applications usually need only call the inherited Searcher.Search(Query, int) or Searcher.Search(Query,Filter, int) methods.

Inheritance: Searcher
Show file Open project: synhershko/lucene.net Class Usage Examples

Public Methods

Method Description
CreateWeight ( Query original ) : Weight

Create weight in multiple index scenario. Distributed query processing is done in the following steps: 1. rewrite query 2. extract necessary terms 3. collect dfs for these terms from the Searchables 4. create query weight using aggregate dfs. 5. distribute that weight to Searchables 6. merge results Steps 1-4 are done here, 5+6 in the search() methods

Doc ( int n ) : Lucene.Net.Documents.Document
Doc ( int n, Lucene.Net.Documents.FieldSelector fieldSelector ) : Lucene.Net.Documents.Document
DocFreq ( Lucene.Net.Index.Term term ) : int
Explain ( Weight weight, int doc ) : Explanation
GetSearchables ( ) : Searchable[]

Return the array of Searchables this searches.

MultiSearcher ( ) : System

Creates a searcher which searches searchers.

Rewrite ( Query original ) : Query
Search ( Weight weight, Filter filter, int nDocs ) : Lucene.Net.Search.TopDocs
Search ( Weight weight, Filter filter, int n, Lucene.Net.Search.Sort sort ) : Lucene.Net.Search.TopFieldDocs
Search ( Weight weight, Filter filter, Collector collector ) : void
SubDoc ( int n ) : int

Returns the document number of document n within its sub-index.

SubSearcher ( int n ) : int

Returns index of the searcher for document n in the array used to construct this searcher.

Protected Methods

Method Description
Dispose ( bool disposing ) : void
GetStarts ( ) : int[]

Method Details

CreateWeight() public method

Create weight in multiple index scenario. Distributed query processing is done in the following steps: 1. rewrite query 2. extract necessary terms 3. collect dfs for these terms from the Searchables 4. create query weight using aggregate dfs. 5. distribute that weight to Searchables 6. merge results Steps 1-4 are done here, 5+6 in the search() methods
public CreateWeight ( Query original ) : Weight
original Query
return Weight

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Doc() public method

public Doc ( int n ) : Lucene.Net.Documents.Document
n int
return Lucene.Net.Documents.Document

Doc() public method

public Doc ( int n, Lucene.Net.Documents.FieldSelector fieldSelector ) : Lucene.Net.Documents.Document
n int
fieldSelector Lucene.Net.Documents.FieldSelector
return Lucene.Net.Documents.Document

DocFreq() public method

public DocFreq ( Lucene.Net.Index.Term term ) : int
term Lucene.Net.Index.Term
return int

Explain() public method

public Explain ( Weight weight, int doc ) : Explanation
weight Weight
doc int
return Explanation

GetSearchables() public method

Return the array of Searchables this searches.
public GetSearchables ( ) : Searchable[]
return Searchable[]

GetStarts() protected method

protected GetStarts ( ) : int[]
return int[]

MultiSearcher() public method

Creates a searcher which searches searchers.
public MultiSearcher ( ) : System
return System

Rewrite() public method

public Rewrite ( Query original ) : Query
original Query
return Query

Search() public method

public Search ( Weight weight, Filter filter, int nDocs ) : Lucene.Net.Search.TopDocs
weight Weight
filter Filter
nDocs int
return Lucene.Net.Search.TopDocs

Search() public method

public Search ( Weight weight, Filter filter, int n, Lucene.Net.Search.Sort sort ) : Lucene.Net.Search.TopFieldDocs
weight Weight
filter Filter
n int
sort Lucene.Net.Search.Sort
return Lucene.Net.Search.TopFieldDocs

Search() public method

public Search ( Weight weight, Filter filter, Collector collector ) : void
weight Weight
filter Filter
collector Collector
return void

SubDoc() public method

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

SubSearcher() public method

Returns index of the searcher for document n in the array used to construct this searcher.
public SubSearcher ( int n ) : int
n int
return int