Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class IndexableFieldExtensions

    Extension methods to the IIndexableField interface.

    Inheritance
    object
    IndexableFieldExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Documents.Extensions
    Assembly: Lucene.Net.dll
    Syntax
    public static class IndexableFieldExtensions

    Methods

    GetByteValueOrDefault(IIndexableField)

    Returns the field value as byte or 0 if the type is non-numeric.

    Declaration
    public static byte GetByteValueOrDefault(this IIndexableField field)
    Parameters
    Type Name Description
    IIndexableField field

    This IIndexableField.

    Returns
    Type Description
    byte

    The field value or 0 if the type is non-numeric.

    GetDoubleValueOrDefault(IIndexableField)

    Returns the field value as double or 0 if the type is non-numeric.

    Declaration
    public static double GetDoubleValueOrDefault(this IIndexableField field)
    Parameters
    Type Name Description
    IIndexableField field

    This IIndexableField.

    Returns
    Type Description
    double

    The field value or 0 if the type is non-numeric.

    GetInt16ValueOrDefault(IIndexableField)

    Returns the field value as short or 0 if the type is non-numeric.

    Declaration
    public static short GetInt16ValueOrDefault(this IIndexableField field)
    Parameters
    Type Name Description
    IIndexableField field

    This IIndexableField.

    Returns
    Type Description
    short

    The field value or 0 if the type is non-numeric.

    GetInt32ValueOrDefault(IIndexableField)

    Returns the field value as int or 0 if the type is non-numeric.

    Declaration
    public static int GetInt32ValueOrDefault(this IIndexableField field)
    Parameters
    Type Name Description
    IIndexableField field

    This IIndexableField.

    Returns
    Type Description
    int

    The field value or 0 if the type is non-numeric.

    GetInt64ValueOrDefault(IIndexableField)

    Returns the field value as long or 0 if the type is non-numeric.

    Declaration
    public static long GetInt64ValueOrDefault(this IIndexableField field)
    Parameters
    Type Name Description
    IIndexableField field

    This IIndexableField.

    Returns
    Type Description
    long

    The field value or 0 if the type is non-numeric.

    GetSingleValueOrDefault(IIndexableField)

    Returns the field value as float or 0 if the type is non-numeric.

    Declaration
    public static float GetSingleValueOrDefault(this IIndexableField field)
    Parameters
    Type Name Description
    IIndexableField field

    This IIndexableField.

    Returns
    Type Description
    float

    The field value or 0 if the type is non-numeric.

    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.