Enum NumericRepresentation
Specifies how a time will be represented as a System.Int64.
Namespace: Lucene.Net.Documents
Assembly: Lucene.Net.dll
Syntax
public enum NumericRepresentation
Fields
Name | Description |
---|---|
TICKS | The .NET ticks representing a date. Specify this to pass the raw ticks from System.DateTime.Ticks or to instantiate a new System.DateTime from the result. |
TICKS_AS_MILLISECONDS | .NET ticks as total milliseconds.
Input values must be converted using the formula This option is provided for compatibility with Lucene.NET 3.0.3 and Lucene.NET 4.8.0-beta00001 through 4.8.0-beta00015, since it was the only option for input representation. |
UNIX_TIME_MILLISECONDS | The number of milliseconds since January 1, 1970, 00:00:00 UTC (also known as the "epoch"). This is the format that Lucene uses, and it is recommended to store this value in the index for compatibility. |