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
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

public final AcceptsDocsOutOfOrder ( ) : bool
Résultat bool

Collect() public final méthode

public final Collect ( int doc ) : void
doc int
Résultat void

CreateDocs() protected méthode

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
Résultat Docs

FacetsCollector() public méthode

Default constructor
public FacetsCollector ( ) : Lucene.Net.Index
Résultat Lucene.Net.Index

FacetsCollector() public méthode

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
Résultat Lucene.Net.Index

GetMatchingDocs() public méthode

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

Search() public static méthode

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
Résultat Lucene.Net.Search.TopDocs

Search() public static méthode

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
Résultat Lucene.Net.Search.TopDocs

Search() public static méthode

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
Résultat Lucene.Net.Search.TopFieldDocs

Search() public static méthode

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
Résultat Lucene.Net.Search.TopFieldDocs

SearchAfter() public static méthode

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
Résultat Lucene.Net.Search.TopDocs

SearchAfter() public static méthode

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
Résultat Lucene.Net.Search.TopDocs

SearchAfter() public static méthode

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
Résultat Lucene.Net.Search.TopDocs

SearchAfter() public méthode

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
Résultat Lucene.Net.Search.TopDocs