Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class IndexableFieldExtensions

    Extension methods to the IIndexableField interface.

    Inheritance
    System.Object
    IndexableFieldExtensions
    Inherited Members
    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)
    System.Object.ToString()
    Namespace: Lucene.Net.Documents.Extensions
    Assembly: Lucene.Net.dll
    Syntax
    public static class IndexableFieldExtensions

    Methods

    | Improve this Doc View Source

    GetByteValueOrDefault(IIndexableField)

    Returns the field value as System.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
    System.Byte

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

    | Improve this Doc View Source

    GetDoubleValueOrDefault(IIndexableField)

    Returns the field value as System.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
    System.Double

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

    | Improve this Doc View Source

    GetInt16ValueOrDefault(IIndexableField)

    Returns the field value as System.Int16 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
    System.Int16

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

    | Improve this Doc View Source

    GetInt32ValueOrDefault(IIndexableField)

    Returns the field value as System.Int32 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
    System.Int32

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

    | Improve this Doc View Source

    GetInt64ValueOrDefault(IIndexableField)

    Returns the field value as System.Int64 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
    System.Int64

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

    | Improve this Doc View Source

    GetSingleValueOrDefault(IIndexableField)

    Returns the field value as System.Single 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
    System.Single

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

    • 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.