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 System.Int32. 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
    System.Object
    Lucene.Net.Documents.Field
    AssociationFacetField
    Int32AssociationFacetField
    Implements
    Lucene.Net.Index.IIndexableField
    System.IFormattable
    Inherited Members
    AssociationFacetField.TYPE
    AssociationFacetField.Dim
    AssociationFacetField.Path
    AssociationFacetField.Assoc
    Lucene.Net.Documents.Field.m_type
    Lucene.Net.Documents.Field.m_name
    Lucene.Net.Documents.Field.FieldsData
    Lucene.Net.Documents.Field.m_tokenStream
    Lucene.Net.Documents.Field.m_boost
    Lucene.Net.Documents.Field.GetStringValue()
    Field.GetStringValue(IFormatProvider)
    Field.GetStringValue(String)
    Field.GetStringValue(String, IFormatProvider)
    Lucene.Net.Documents.Field.GetReaderValue()
    Lucene.Net.Documents.Field.GetTokenStreamValue()
    Field.SetStringValue(String)
    Field.SetReaderValue(TextReader)
    Lucene.Net.Documents.Field.SetBytesValue(Lucene.Net.Util.BytesRef)
    Field.SetBytesValue(Byte[])
    Field.SetByteValue(Byte)
    Field.SetInt16Value(Int16)
    Field.SetInt32Value(Int32)
    Field.SetInt64Value(Int64)
    Field.SetSingleValue(Single)
    Field.SetDoubleValue(Double)
    Lucene.Net.Documents.Field.SetTokenStream(Lucene.Net.Analysis.TokenStream)
    Lucene.Net.Documents.Field.Name
    Lucene.Net.Documents.Field.Boost
    Lucene.Net.Documents.Field.GetNumericValue()
    Lucene.Net.Documents.Field.NumericType
    Lucene.Net.Documents.Field.GetByteValue()
    Lucene.Net.Documents.Field.GetInt16Value()
    Lucene.Net.Documents.Field.GetInt32Value()
    Lucene.Net.Documents.Field.GetInt64Value()
    Lucene.Net.Documents.Field.GetSingleValue()
    Lucene.Net.Documents.Field.GetDoubleValue()
    Lucene.Net.Documents.Field.GetBinaryValue()
    Field.ToString(String)
    Field.ToString(IFormatProvider)
    Field.ToString(String, IFormatProvider)
    Lucene.Net.Documents.Field.FieldType
    Lucene.Net.Documents.Field.IndexableFieldType
    Lucene.Net.Documents.Field.GetTokenStream(Lucene.Net.Analysis.Analyzer)
    Lucene.Net.Documents.Field.TranslateFieldType(Lucene.Net.Documents.Field.Store, Lucene.Net.Documents.Field.Index, Lucene.Net.Documents.Field.TermVector)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Lucene.Net.Facet.Taxonomy
    Assembly: Lucene.Net.Facet.dll
    Syntax
    public class Int32AssociationFacetField : AssociationFacetField, IIndexableField, IFormattable

    Constructors

    | Improve this Doc View Source

    Int32AssociationFacetField(Int32, String, 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
    System.Int32 assoc
    System.String dim
    System.String[] path

    Methods

    | Improve this Doc View Source

    BytesRefToInt32(BytesRef)

    Decodes a previously encoded System.Int32.

    NOTE: This was bytesRefToInt() in Lucene

    Declaration
    public static int BytesRefToInt32(BytesRef b)
    Parameters
    Type Name Description
    Lucene.Net.Util.BytesRef b
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Int32ToBytesRef(Int32)

    Encodes an System.Int32 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
    System.Int32 v
    Returns
    Type Description
    Lucene.Net.Util.BytesRef
    | Improve this Doc View Source

    ToString()

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

    Implements

    Lucene.Net.Index.IIndexableField
    System.IFormattable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 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.