Show / Hide Table of Contents

    Class Constants

    Some useful constants.

    Inheritance
    System.Object
    Constants
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public static class Constants : object

    Fields

    | Improve this Doc View Source

    FREE_BSD

    True iff running on FreeBSD

    Declaration
    public static readonly bool FREE_BSD
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    LINUX

    True iff running on Linux.

    Declaration
    public static readonly bool LINUX
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    LUCENE_MAIN_VERSION

    this is the internal Lucene version, recorded into each segment. NOTE: we track per-segment version as a with the "X.Y" format (no minor version), e.g. "4.0", "3.1", "3.0".

    Alpha and Beta versions will have numbers like "X.Y.0.Z", anything else is not allowed. This is done to prevent people from using indexes created with ALPHA/BETA versions with the released version.

    Declaration
    public static readonly string LUCENE_MAIN_VERSION
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    LUCENE_VERSION

    This is the Lucene version for display purposes.

    Declaration
    public static readonly string LUCENE_VERSION
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    MAC_OS_X

    True iff running on Mac OS X

    Declaration
    public static readonly bool MAC_OS_X
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    OS_ARCH

    Declaration
    public static readonly string OS_ARCH
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    OS_NAME

    The value of , excluding the version number.

    Declaration
    public static readonly string OS_NAME
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    OS_VERSION

    Declaration
    public static readonly string OS_VERSION
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    RUNTIME_IS_64BIT

    NOTE: This was JRE_IS_64BIT in Lucene

    Declaration
    public static readonly bool RUNTIME_IS_64BIT
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    RUNTIME_VENDOR

    NOTE: This was JAVA_VENDOR in Lucene

    Declaration
    public static readonly string RUNTIME_VENDOR
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    RUNTIME_VERSION

    The value of the version parsed from .

    NOTE: This was JAVA_VERSION in Lucene

    Declaration
    public static readonly string RUNTIME_VERSION
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    SUN_OS

    True iff running on SunOS.

    Declaration
    public static readonly bool SUN_OS
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    WINDOWS

    True iff running on Windows.

    Declaration
    public static readonly bool WINDOWS
    Field Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    MainVersionWithoutAlphaBeta()

    Returns a LUCENE_MAIN_VERSION without any ALPHA/BETA qualifier Used by test only!

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