Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Enum NumericRepresentation

    Specifies how a time will be represented as a long.

    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 Ticks or to instantiate a new DateTime from the result.

    TICKS_AS_MILLISECONDS

    .NET ticks as total milliseconds. Input values must be converted using the formula ticks / TicksPerMillisecond. Output values can be converted to ticks using ticks * TicksPerMillisecond.

    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.

    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.