Class Constants
Some useful constants.
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public static class Constants
Fields
FREE_BSD
True iff running on FreeBSD
Declaration
public static readonly bool FREE_BSD
Field Value
Type | Description |
---|---|
bool |
LINUX
True iff running on Linux.
Declaration
public static readonly bool LINUX
Field Value
Type | Description |
---|---|
bool |
LUCENE_MAIN_VERSION
this is the internal Lucene version, recorded into each segment.
NOTE: we track per-segment version as a string with the "X.Y"
format
(no minor version), e.g. "4.0", "3.1", "3.0"
.
"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 |
---|---|
string |
LUCENE_VERSION
This is the Lucene version for display purposes.
Declaration
public static readonly string LUCENE_VERSION
Field Value
Type | Description |
---|---|
string |
MAC_OS_X
True iff running on Mac OS X
Declaration
public static readonly bool MAC_OS_X
Field Value
Type | Description |
---|---|
bool |
OS_ARCH
Some useful constants.
Declaration
public static readonly string OS_ARCH
Field Value
Type | Description |
---|---|
string |
OS_NAME
The value of OSDescription, excluding the version number.
Declaration
public static readonly string OS_NAME
Field Value
Type | Description |
---|---|
string |
OS_VERSION
Some useful constants.
Declaration
public static readonly string OS_VERSION
Field Value
Type | Description |
---|---|
string |
RUNTIME_IS_64BIT
NOTE: This was JRE_IS_64BIT in Lucene
Declaration
public static readonly bool RUNTIME_IS_64BIT
Field Value
Type | Description |
---|---|
bool |
RUNTIME_VENDOR
NOTE: This was JAVA_VENDOR in Lucene
Declaration
public static readonly string RUNTIME_VENDOR
Field Value
Type | Description |
---|---|
string |
RUNTIME_VERSION
The value of the version parsed from FrameworkDescription.
NOTE: This was JAVA_VERSION in LuceneDeclaration
public static readonly string RUNTIME_VERSION
Field Value
Type | Description |
---|---|
string |
SUN_OS
True iff running on SunOS.
Declaration
public static readonly bool SUN_OS
Field Value
Type | Description |
---|---|
bool |
WINDOWS
True iff running on Windows.
Declaration
public static readonly bool WINDOWS
Field Value
Type | Description |
---|---|
bool |