Class Constants
Some useful constants.
Inheritance
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public static class Constants
Fields
| Improve this Doc View SourceFREE_BSD
True iff running on FreeBSD
Declaration
public static readonly bool FREE_BSD
Field Value
Type | Description |
---|---|
System.Boolean |
LINUX
True iff running on Linux.
Declaration
public static readonly bool LINUX
Field Value
Type | Description |
---|---|
System.Boolean |
LUCENE_MAIN_VERSION
this is the internal Lucene version, recorded into each segment.
NOTE: we track per-segment version as a System.String 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 |
LUCENE_VERSION
This is the Lucene version for display purposes.
Declaration
public static readonly string LUCENE_VERSION
Field Value
Type | Description |
---|---|
System.String |
MAC_OS_X
True iff running on Mac OS X
Declaration
public static readonly bool MAC_OS_X
Field Value
Type | Description |
---|---|
System.Boolean |
OS_ARCH
Declaration
public static readonly string OS_ARCH
Field Value
Type | Description |
---|---|
System.String |
OS_NAME
The value of System.Runtime.InteropServices.RuntimeInformation.OSDescription, excluding the version number.
Declaration
public static readonly string OS_NAME
Field Value
Type | Description |
---|---|
System.String |
OS_VERSION
Declaration
public static readonly string OS_VERSION
Field Value
Type | Description |
---|---|
System.String |
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 |
RUNTIME_VENDOR
NOTE: This was JAVA_VENDOR in Lucene
Declaration
public static readonly string RUNTIME_VENDOR
Field Value
Type | Description |
---|---|
System.String |
RUNTIME_VERSION
The value of the version parsed from System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription.
NOTE: This was JAVA_VERSION in Lucene
Declaration
public static readonly string RUNTIME_VERSION
Field Value
Type | Description |
---|---|
System.String |
SUN_OS
True iff running on SunOS.
Declaration
public static readonly bool SUN_OS
Field Value
Type | Description |
---|---|
System.Boolean |
WINDOWS
True iff running on Windows.
Declaration
public static readonly bool WINDOWS
Field Value
Type | Description |
---|---|
System.Boolean |