C# Класс 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.

Наследование: Searcher
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void
GetStarts ( ) : int[]

Описание методов

CreateWeight() публичный Метод

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
Результат Weight

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Doc() публичный Метод

public Doc ( int n ) : Lucene.Net.Documents.Document
n int
Результат Lucene.Net.Documents.Document

Doc() публичный Метод

public Doc ( int n, Lucene.Net.Documents.FieldSelector fieldSelector ) : Lucene.Net.Documents.Document
n int
fieldSelector Lucene.Net.Documents.FieldSelector
Результат Lucene.Net.Documents.Document

DocFreq() публичный Метод

public DocFreq ( Lucene.Net.Index.Term term ) : int
term Lucene.Net.Index.Term
Результат int

Explain() публичный Метод

public Explain ( Weight weight, int doc ) : Explanation
weight Weight
doc int
Результат Explanation

GetSearchables() публичный Метод

Return the array of Searchables this searches.
public GetSearchables ( ) : Searchable[]
Результат Searchable[]

GetStarts() защищенный Метод

protected GetStarts ( ) : int[]
Результат int[]

MultiSearcher() публичный Метод

Creates a searcher which searches searchers.
public MultiSearcher ( ) : System
Результат System

Rewrite() публичный Метод

public Rewrite ( Query original ) : Query
original Query
Результат Query

Search() публичный Метод

public Search ( Weight weight, Filter filter, int nDocs ) : Lucene.Net.Search.TopDocs
weight Weight
filter Filter
nDocs int
Результат Lucene.Net.Search.TopDocs

Search() публичный Метод

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
Результат Lucene.Net.Search.TopFieldDocs

Search() публичный Метод

public Search ( Weight weight, Filter filter, Collector collector ) : void
weight Weight
filter Filter
collector Collector
Результат void

SubDoc() публичный Метод

Returns the document number of document n within its sub-index.
public SubDoc ( int n ) : int
n int
Результат int

SubSearcher() публичный Метод

Returns index of the searcher for document n in the array used to construct this searcher.
public SubSearcher ( int n ) : int
n int
Результат int