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
Показать файл Открыть проект Примеры использования класса

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

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