C# Class Lucene.Net.Search.Grouping.Terms.TermGroupFacetCollector

An implementation of AbstractGroupFacetCollector that computes grouped facets based on the indexed terms from the FieldCache. @lucene.experimental
Inheritance: AbstractGroupFacetCollector
Show file Open project: apache/lucenenet

Public Methods

Method Description
CreateTermGroupFacetCollector ( string groupField, string facetField, bool facetFieldMultivalued, BytesRef facetPrefix, int initialSize ) : TermGroupFacetCollector

Factory method for creating the right implementation based on the fact whether the facet field contains multiple tokens per documents.

Private Methods

Method Description
TermGroupFacetCollector ( string groupField, string facetField, BytesRef facetPrefix, int initialSize ) : Lucene.Net.Index

Method Details

CreateTermGroupFacetCollector() public static method

Factory method for creating the right implementation based on the fact whether the facet field contains multiple tokens per documents.
public static CreateTermGroupFacetCollector ( string groupField, string facetField, bool facetFieldMultivalued, BytesRef facetPrefix, int initialSize ) : TermGroupFacetCollector
groupField string The group field
facetField string The facet field
facetFieldMultivalued bool Whether the facet field has multiple tokens per document
facetPrefix BytesRef The facet prefix a facet entry should start with to be included.
initialSize int /// The initial allocation size of the internal int set and group facet list which should roughly /// match the total number of expected unique groups. Be aware that the heap usage is /// 4 bytes * initialSize. ///
return TermGroupFacetCollector