[
https://issues.apache.org/jira/browse/LUCENE-7278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley updated LUCENE-7278:
---------------------------------
Attachment: LUCENE_7278.patch
Small bug fixed: the toString(cal) should not emit the milliseconds if it's 0.
The randomized test would eventually find it (1/1000) but I caught this at a
test using this in Solr.
> Make template Calendar configurable in DateRangePrefixTree
> ----------------------------------------------------------
>
> Key: LUCENE-7278
> URL: https://issues.apache.org/jira/browse/LUCENE-7278
> Project: Lucene - Core
> Issue Type: Improvement
> Components: modules/spatial-extras
> Reporter: David Smiley
> Assignee: David Smiley
> Fix For: 6.1
>
> Attachments: LUCENE_7278.patch, LUCENE_7278.patch
>
>
> DateRangePrefixTree (a SpatialPrefixTree designed for dates and date ranges)
> currently uses a hard-coded Calendar template for making new instances. This
> ought to be configurable so that, for example, the Gregorian change date can
> be configured. This is particularly important for compatibility with Java
> 8's java.time API which uses the Gregorian calendar for all time (there is no
> use of Julian prior to 1582).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]