You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Anton Hosgood (Jira)" <ji...@apache.org> on 2026/08/10 17:02:00 UTC

[jira] [Updated] (OAK-12343) Document (and test) that ORDER BY on a type=Date ordered property fails when values aren't valid dates

     [ https://issues.apache.org/jira/browse/OAK-12343?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anton Hosgood updated OAK-12343:
--------------------------------
    Issue Type: Improvement  (was: Bug)

> 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
>            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)