C# Class 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.
Inheritance: Lucene.Net.Search.Collector
Datei anzeigen Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
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.

Protected Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

AcceptsDocsOutOfOrder() public final method

public final AcceptsDocsOutOfOrder ( ) : bool
return bool

Collect() public final method

public final Collect ( int doc ) : void
doc int
return void

CreateDocs() protected method

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
return Docs

FacetsCollector() public method

Default constructor
public FacetsCollector ( ) : Lucene.Net.Index
return Lucene.Net.Index

FacetsCollector() public method

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
return Lucene.Net.Index

GetMatchingDocs() public method

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

Search() public static method

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
return Lucene.Net.Search.TopDocs

Search() public static method

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
return Lucene.Net.Search.TopDocs

Search() public static method

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
return Lucene.Net.Search.TopFieldDocs

Search() public static method

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
return Lucene.Net.Search.TopFieldDocs

SearchAfter() public static method

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
return Lucene.Net.Search.TopDocs

SearchAfter() public static method

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
return Lucene.Net.Search.TopDocs

SearchAfter() public static method

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
return Lucene.Net.Search.TopDocs

SearchAfter() public method

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
return Lucene.Net.Search.TopDocs