Show / Hide Table of Contents

    Class TermGroupFacetCollector

    An implementation of AbstractGroupFacetCollector that computes grouped facets based on the indexed terms from the FieldCache.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    AbstractGroupFacetCollector
    TermGroupFacetCollector
    Implements
    ICollector
    Inherited Members
    AbstractGroupFacetCollector.m_groupField
    AbstractGroupFacetCollector.m_facetField
    AbstractGroupFacetCollector.m_facetPrefix
    AbstractGroupFacetCollector.m_segmentResults
    AbstractGroupFacetCollector.m_segmentFacetCounts
    AbstractGroupFacetCollector.m_segmentTotalCount
    AbstractGroupFacetCollector.m_startFacetOrd
    AbstractGroupFacetCollector.m_endFacetOrd
    AbstractGroupFacetCollector.MergeSegmentResults(Int32, Int32, Boolean)
    AbstractGroupFacetCollector.CreateSegmentResult()
    AbstractGroupFacetCollector.SetScorer(Scorer)
    AbstractGroupFacetCollector.Collect(Int32)
    AbstractGroupFacetCollector.SetNextReader(AtomicReaderContext)
    AbstractGroupFacetCollector.AcceptsDocsOutOfOrder
    Namespace: Lucene.Net.Search.Grouping.Terms
    Assembly: Lucene.Net.Grouping.dll
    Syntax
    public abstract class TermGroupFacetCollector : AbstractGroupFacetCollector, ICollector

    Methods

    | Improve this Doc View Source

    CreateTermGroupFacetCollector(String, String, Boolean, BytesRef, Int32)

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

    Declaration
    public static TermGroupFacetCollector CreateTermGroupFacetCollector(string groupField, string facetField, bool facetFieldMultivalued, BytesRef facetPrefix, int initialSize)
    Parameters
    Type Name Description
    System.String groupField

    The group field

    System.String facetField

    The facet field

    System.Boolean facetFieldMultivalued

    Whether the facet field has multiple tokens per document

    BytesRef facetPrefix

    The facet prefix a facet entry should start with to be included.

    System.Int32 initialSize

    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.

    Returns
    Type Description
    TermGroupFacetCollector

    TermGroupFacetCollector implementation

    Implements

    ICollector
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)