Show / Hide Table of Contents

    Class SingleAssociationFacetField

    Add an instance of this to your to add a facet label associated with a . Use TaxonomyFacetSumSingleAssociations to aggregate values per facet label at search time.

    NOTE: This was FloatAssociationFacetField in Lucene

    @lucene.experimental

    Inheritance
    System.Object
    AssociationFacetField
    SingleAssociationFacetField
    Inherited Members
    AssociationFacetField.TYPE
    AssociationFacetField.Dim
    AssociationFacetField.Path
    AssociationFacetField.Assoc
    Namespace: Lucene.Net.Facet.Taxonomy
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public class SingleAssociationFacetField : AssociationFacetField

    Constructors

    | Improve this Doc View Source

    SingleAssociationFacetField(Single, String, String[])

    Creates this from dim and path and a association

    Declaration
    public SingleAssociationFacetField(float assoc, string dim, params string[] path)
    Parameters
    Type Name Description
    System.Single assoc
    System.String dim
    System.String[] path

    Methods

    | Improve this Doc View Source

    BytesRefToSingle(Util.BytesRef)

    Decodes a previously encoded .

    NOTE: This was bytesRefToFloat() in Lucene

    Declaration
    public static float BytesRefToSingle(Util.BytesRef b)
    Parameters
    Type Name Description
    Util.BytesRef b
    Returns
    Type Description
    System.Single
    | Improve this Doc View Source

    SingleToBytesRef(Single)

    Encodes a as a 4-byte .

    NOTE: This was floatToBytesRef() in Lucene

    Declaration
    public static Util.BytesRef SingleToBytesRef(float v)
    Parameters
    Type Name Description
    System.Single v
    Returns
    Type Description
    Util.BytesRef
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    AssociationFacetField.ToString()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)