[
https://issues.apache.org/jira/browse/OAK-12343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anton Hosgood resolved OAK-12343.
---------------------------------
Resolution: Fixed
> Document (and test) that ORDER BY on a type=Date ordered property fails when
> values aren't valid dates
> ------------------------------------------------------------------------------------------------------
>
> Key: OAK-12343
> URL: https://issues.apache.org/jira/browse/OAK-12343
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: indexing
> Reporter: Anton Hosgood
> Priority: Major
>
> An ordered Lucene property index declared with type=Date only works if every
> value is a valid ISO-8601 date. Values that aren't (a non-ISO timestamp, or a
> plain string on some nodes) aren't indexed as dates, so ORDER BY on the
> property either returns the wrong order or — if the query relies on that
> property to select nodes — no results at all. type=String (or leaving type
> unset, or order by lower(...)) works instead.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)