Anton Hosgood created OAK-12343:
-----------------------------------
Summary: 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: Bug
Reporter: Anton Hosgood
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)