Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Int32AssociationFacetField

    Add an instance of this to your Lucene.Net.Documents.Document to add a facet label associated with an int. Use TaxonomyFacetSumInt32Associations to aggregate int values per facet label at search time.

    NOTE: This was IntAssociationFacetField in Lucene

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    Field
    AssociationFacetField
    Int32AssociationFacetField
    Implements
    IIndexableField
    IFormattable
    Inherited Members
    AssociationFacetField.TYPE
    AssociationFacetField.Dim
    AssociationFacetField.Path
    AssociationFacetField.Assoc
    Field.m_type
    Field.m_name
    Field.FieldsData
    Field.m_tokenStream
    Field.m_boost
    Field.GetStringValue()
    Field.GetStringValue(IFormatProvider)
    Field.GetStringValue(string)
    Field.GetStringValue(string, IFormatProvider)
    Field.GetReaderValue()
    Field.GetTokenStreamValue()
    Field.SetStringValue(string)
    Field.SetReaderValue(TextReader)
    Field.SetBytesValue(BytesRef)
    Field.SetBytesValue(byte[])
    Field.SetByteValue(byte)
    Field.SetInt16Value(short)
    Field.SetInt32Value(int)
    Field.SetInt64Value(long)
    Field.SetSingleValue(float)
    Field.SetDoubleValue(double)
    Field.SetTokenStream(TokenStream)
    Field.Name
    Field.Boost
    Field.GetNumericValue()
    Field.NumericType
    Field.GetByteValue()
    Field.GetInt16Value()
    Field.GetInt32Value()
    Field.GetInt64Value()
    Field.GetSingleValue()
    Field.GetDoubleValue()
    Field.GetBinaryValue()
    Field.ToString(string)
    Field.ToString(IFormatProvider)
    Field.ToString(string, IFormatProvider)
    Field.FieldType
    Field.IndexableFieldType
    Field.GetTokenStream(Analyzer)
    Field.TranslateFieldType(Field.Store, Field.Index, Field.TermVector)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Lucene.Net.Facet.Taxonomy
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public class Int32AssociationFacetField : AssociationFacetField, IIndexableField, IFormattable

    Constructors

    Int32AssociationFacetField(int, string, params string[])

    Creates this from dim and path and an int association

    Declaration
    public Int32AssociationFacetField(int assoc, string dim, params string[] path)
    Parameters
    Type Name Description
    int assoc
    string dim
    string[] path

    Methods

    BytesRefToInt32(BytesRef)

    Decodes a previously encoded int.

    NOTE: This was bytesRefToInt() in Lucene
    Declaration
    public static int BytesRefToInt32(BytesRef b)
    Parameters
    Type Name Description
    BytesRef b
    Returns
    Type Description
    int

    Int32ToBytesRef(int)

    Encodes an int as a 4-byte Lucene.Net.Util.BytesRef, big-endian.

    NOTE: This was intToBytesRef() in Lucene
    Declaration
    public static BytesRef Int32ToBytesRef(int v)
    Parameters
    Type Name Description
    int v
    Returns
    Type Description
    BytesRef

    ToString()

    Prints a Lucene.Net.Documents.Field for human consumption.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    AssociationFacetField.ToString()

    Implements

    Lucene.Net.Index.IIndexableField
    IFormattable
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.