Class Constants
Some useful constants.
Inheritance
Inherited Members
Namespace: Lucene.Net.Util
Assembly: Lucene.Net.dll
Syntax
public static class ConstantsFields
| Improve this Doc View SourceFREE_BSD
True iff running on FreeBSD
Declaration
public static readonly bool FREE_BSDField Value
| Type | Description | 
|---|---|
| System.Boolean | 
LINUX
True iff running on Linux.
Declaration
public static readonly bool LINUXField 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_VERSIONField Value
| Type | Description | 
|---|---|
| System.String | 
LUCENE_VERSION
This is the Lucene version for display purposes.
Declaration
public static readonly string LUCENE_VERSIONField Value
| Type | Description | 
|---|---|
| System.String | 
MAC_OS_X
True iff running on Mac OS X
Declaration
public static readonly bool MAC_OS_XField Value
| Type | Description | 
|---|---|
| System.Boolean | 
OS_ARCH
Declaration
public static readonly string OS_ARCHField 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_NAMEField Value
| Type | Description | 
|---|---|
| System.String | 
OS_VERSION
Declaration
public static readonly string OS_VERSIONField Value
| Type | Description | 
|---|---|
| System.String | 
RUNTIME_IS_64BIT
NOTE: This was JRE_IS_64BIT in Lucene
Declaration
public static readonly bool RUNTIME_IS_64BITField Value
| Type | Description | 
|---|---|
| System.Boolean | 
RUNTIME_VENDOR
NOTE: This was JAVA_VENDOR in Lucene
Declaration
public static readonly string RUNTIME_VENDORField 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_VERSIONField Value
| Type | Description | 
|---|---|
| System.String | 
SUN_OS
True iff running on SunOS.
Declaration
public static readonly bool SUN_OSField Value
| Type | Description | 
|---|---|
| System.Boolean | 
WINDOWS
True iff running on Windows.
Declaration
public static readonly bool WINDOWSField Value
| Type | Description | 
|---|---|
| System.Boolean |