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
파일 보기 프로젝트 열기: synhershko/lucene.net 1 사용 예제들

공개 메소드들

메소드 설명
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