C# 클래스 Lucene.Net.Facet.FacetsCollector

Collects hits for subsequent faceting. Once you've run a search and collect hits into this, instantiate one of the Collector subclasses to do the facet counting. Use the {@code search} utility methods to perform an "ordinary" search but also collect into a Facets.
상속: Lucene.Net.Search.Collector
파일 보기 프로젝트 열기: apache/lucenenet 1 사용 예제들

공개 메소드들

메소드 설명
AcceptsDocsOutOfOrder ( ) : bool
Collect ( int doc ) : void
FacetsCollector ( ) : Lucene.Net.Index

Default constructor

FacetsCollector ( bool keepScores ) : Lucene.Net.Index

Create this; if keepScores is true then a float[] is allocated to hold score of all hits.

GetMatchingDocs ( ) : List

Returns the documents matched by the query, one GetMatchingDocs per visited segment.

Search ( IndexSearcher searcher, Query q, Filter filter, int n, Collector fc ) : Lucene.Net.Search.TopDocs

Utility method, to search and also collect all hits into the provided Collector.

Search ( IndexSearcher searcher, Query q, int n, Collector fc ) : Lucene.Net.Search.TopDocs

Utility method, to search and also collect all hits into the provided Collector.

Search ( IndexSearcher searcher, Query q, Filter filter, int n, Lucene.Net.Search.Sort sort, Collector fc ) : Lucene.Net.Search.TopFieldDocs

Utility method, to search and also collect all hits into the provided Collector.

Search ( IndexSearcher searcher, Query q, Filter filter, int n, Lucene.Net.Search.Sort sort, bool doDocScores, bool doMaxScore, Collector fc ) : Lucene.Net.Search.TopFieldDocs

Utility method, to search and also collect all hits into the provided Collector.

SearchAfter ( IndexSearcher searcher, Lucene.Net.Search.ScoreDoc after, Query q, Filter filter, int n, Collector fc ) : Lucene.Net.Search.TopDocs

Utility method, to search and also collect all hits into the provided Collector.

SearchAfter ( IndexSearcher searcher, Lucene.Net.Search.ScoreDoc after, Query q, Filter filter, int n, Lucene.Net.Search.Sort sort, Collector fc ) : Lucene.Net.Search.TopDocs

Utility method, to search and also collect all hits into the provided Collector.

SearchAfter ( IndexSearcher searcher, Lucene.Net.Search.ScoreDoc after, Query q, Filter filter, int n, Lucene.Net.Search.Sort sort, bool doDocScores, bool doMaxScore, Collector fc ) : Lucene.Net.Search.TopDocs

Utility method, to search and also collect all hits into the provided Collector.

SearchAfter ( IndexSearcher searcher, Lucene.Net.Search.ScoreDoc after, Query q, int n, Collector fc ) : Lucene.Net.Search.TopDocs

Utility method, to search and also collect all hits into the provided Collector.

보호된 메소드들

메소드 설명
CreateDocs ( int maxDoc ) : Docs

Creates a Docs to record hits. The default uses FixedBitSet to record hits and you can override to e.g. record the docs in your own DocIdSet.

비공개 메소드들

메소드 설명
DoSearch ( IndexSearcher searcher, Lucene.Net.Search.ScoreDoc after, Query q, Filter filter, int n, Lucene.Net.Search.Sort sort, bool doDocScores, bool doMaxScore, Collector fc ) : Lucene.Net.Search.TopDocs

메소드 상세

AcceptsDocsOutOfOrder() 공개 최종 메소드

public final AcceptsDocsOutOfOrder ( ) : bool
리턴 bool

Collect() 공개 최종 메소드

public final Collect ( int doc ) : void
doc int
리턴 void

CreateDocs() 보호된 메소드

Creates a Docs to record hits. The default uses FixedBitSet to record hits and you can override to e.g. record the docs in your own DocIdSet.
protected CreateDocs ( int maxDoc ) : Docs
maxDoc int
리턴 Docs

FacetsCollector() 공개 메소드

Default constructor
public FacetsCollector ( ) : Lucene.Net.Index
리턴 Lucene.Net.Index

FacetsCollector() 공개 메소드

Create this; if keepScores is true then a float[] is allocated to hold score of all hits.
public FacetsCollector ( bool keepScores ) : Lucene.Net.Index
keepScores bool
리턴 Lucene.Net.Index

GetMatchingDocs() 공개 메소드

Returns the documents matched by the query, one GetMatchingDocs per visited segment.
public GetMatchingDocs ( ) : List
리턴 List

Search() 공개 정적인 메소드

Utility method, to search and also collect all hits into the provided Collector.
public static Search ( IndexSearcher searcher, Query q, Filter filter, int n, Collector fc ) : Lucene.Net.Search.TopDocs
searcher Lucene.Net.Search.IndexSearcher
q Lucene.Net.Search.Query
filter Lucene.Net.Search.Filter
n int
fc Lucene.Net.Search.Collector
리턴 Lucene.Net.Search.TopDocs

Search() 공개 정적인 메소드

Utility method, to search and also collect all hits into the provided Collector.
public static Search ( IndexSearcher searcher, Query q, int n, Collector fc ) : Lucene.Net.Search.TopDocs
searcher Lucene.Net.Search.IndexSearcher
q Lucene.Net.Search.Query
n int
fc Lucene.Net.Search.Collector
리턴 Lucene.Net.Search.TopDocs

Search() 공개 정적인 메소드

Utility method, to search and also collect all hits into the provided Collector.
public static Search ( IndexSearcher searcher, Query q, Filter filter, int n, Lucene.Net.Search.Sort sort, Collector fc ) : Lucene.Net.Search.TopFieldDocs
searcher Lucene.Net.Search.IndexSearcher
q Lucene.Net.Search.Query
filter Lucene.Net.Search.Filter
n int
sort Lucene.Net.Search.Sort
fc Lucene.Net.Search.Collector
리턴 Lucene.Net.Search.TopFieldDocs

Search() 공개 정적인 메소드

Utility method, to search and also collect all hits into the provided Collector.
public static Search ( IndexSearcher searcher, Query q, Filter filter, int n, Lucene.Net.Search.Sort sort, bool doDocScores, bool doMaxScore, Collector fc ) : Lucene.Net.Search.TopFieldDocs
searcher Lucene.Net.Search.IndexSearcher
q Lucene.Net.Search.Query
filter Lucene.Net.Search.Filter
n int
sort Lucene.Net.Search.Sort
doDocScores bool
doMaxScore bool
fc Lucene.Net.Search.Collector
리턴 Lucene.Net.Search.TopFieldDocs

SearchAfter() 공개 정적인 메소드

Utility method, to search and also collect all hits into the provided Collector.
public static SearchAfter ( IndexSearcher searcher, Lucene.Net.Search.ScoreDoc after, Query q, Filter filter, int n, Collector fc ) : Lucene.Net.Search.TopDocs
searcher Lucene.Net.Search.IndexSearcher
after Lucene.Net.Search.ScoreDoc
q Lucene.Net.Search.Query
filter Lucene.Net.Search.Filter
n int
fc Lucene.Net.Search.Collector
리턴 Lucene.Net.Search.TopDocs

SearchAfter() 공개 정적인 메소드

Utility method, to search and also collect all hits into the provided Collector.
public static SearchAfter ( IndexSearcher searcher, Lucene.Net.Search.ScoreDoc after, Query q, Filter filter, int n, Lucene.Net.Search.Sort sort, Collector fc ) : Lucene.Net.Search.TopDocs
searcher Lucene.Net.Search.IndexSearcher
after Lucene.Net.Search.ScoreDoc
q Lucene.Net.Search.Query
filter Lucene.Net.Search.Filter
n int
sort Lucene.Net.Search.Sort
fc Lucene.Net.Search.Collector
리턴 Lucene.Net.Search.TopDocs

SearchAfter() 공개 정적인 메소드

Utility method, to search and also collect all hits into the provided Collector.
public static SearchAfter ( IndexSearcher searcher, Lucene.Net.Search.ScoreDoc after, Query q, Filter filter, int n, Lucene.Net.Search.Sort sort, bool doDocScores, bool doMaxScore, Collector fc ) : Lucene.Net.Search.TopDocs
searcher Lucene.Net.Search.IndexSearcher
after Lucene.Net.Search.ScoreDoc
q Lucene.Net.Search.Query
filter Lucene.Net.Search.Filter
n int
sort Lucene.Net.Search.Sort
doDocScores bool
doMaxScore bool
fc Lucene.Net.Search.Collector
리턴 Lucene.Net.Search.TopDocs

SearchAfter() 공개 메소드

Utility method, to search and also collect all hits into the provided Collector.
public SearchAfter ( IndexSearcher searcher, Lucene.Net.Search.ScoreDoc after, Query q, int n, Collector fc ) : Lucene.Net.Search.TopDocs
searcher Lucene.Net.Search.IndexSearcher
after Lucene.Net.Search.ScoreDoc
q Lucene.Net.Search.Query
n int
fc Lucene.Net.Search.Collector
리턴 Lucene.Net.Search.TopDocs