You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by GitBox <gi...@apache.org> on 2021/12/19 18:45:12 UTC

[GitHub] [lucenenet] NightOwl888 opened a new pull request #580: BREAKING: Lucene.Net.Documents.DateTools/Lucene.Net.QueryParser Updates

NightOwl888 opened a new pull request #580:
URL: https://github.com/apache/lucenenet/pull/580


   ### DateTools
   
   - Added support for `TimeZoneInfo` when converting to/from string
   - BREAKING: Added `NumericRepresentation` enum to allow converting to/from long in the following formats:
     - Unix Epoch (default): Milliseconds since Jan 1, 1970 12:00:00 AM UTC.
     - Ticks: The raw ticks from `DateTime` or `DateTimeOffset`.
     - Ticks as Milliseconds: This is for compatibility with prior versions of Lucene.NET (3.0.3 and 4.8.0-beta00001 - 4.8.0-beta00015). The conversion done on input values is `time * TimeSpan.TicksPerMillisecond` and the conversion to output values is `time / TimeSpan.TicksPerMillisecond`.
   - BREAKING: De-nested `Resolution` enum and renamed `DateResolution`.
   
   ### QueryParser
   
   - `Lucene.Net.QueryParsers.Flexible.Standard.Config.NumberDateFormat`: Added constructor overload to format a date without a time.
   - `Lucene.Net.QueryParsers.Flexible.Standard.Config.NumberDateFormat`: Added `NumericRepresentation` property to set the representation to use for both `Format()` and `Parse()`.
   - Added support for `TimeZoneInfo` when converting to/from string (Classic and Flexible query parsers)
   - BREAKING: `Lucene.Net.QueryParsers.Flexible.Standard`: Changed numeric nodes to accept and return `J2N.Numerics` types instead of `object`.
   - `Lucene.Net.QueryParsers.Classic.QueryParserBase: Use `TryParse()` instead of `Parse()` to parse numeric values. Use the current culture, but fall back to invariant culture.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [lucenenet] NightOwl888 merged pull request #580: BREAKING: Lucene.Net.Documents.DateTools/Lucene.Net.QueryParser Updates

Posted by GitBox <gi...@apache.org>.
NightOwl888 merged pull request #580:
URL: https://github.com/apache/lucenenet/pull/580


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@lucenenet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org