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 "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2017/01/03 04:57:58 UTC
[jira] [Created] (OAK-5402) Lucene Ordered index should handle case
where property defined as DATE is stored as LONG
Chetan Mehrotra created OAK-5402:
------------------------------------
Summary: Lucene Ordered index should handle case where property defined as DATE is stored as LONG
Key: OAK-5402
URL: https://issues.apache.org/jira/browse/OAK-5402
Project: Jackrabbit Oak
Issue Type: Improvement
Components: lucene
Reporter: Chetan Mehrotra
Assignee: Chetan Mehrotra
Priority: Minor
Fix For: 1.8
For ordered lucene indexes its required to define property type. In some cases its seen that a property which defined as {{date}} is stored as {{long}} which causes such nodes to be indexed partially.
For example a property {{lastModified}} is normally defined as DATE. For some nodes the value is stored as LONG. Currently such nodes would be indexed partially i.e. the ordered property would not be indexed.
{noformat}
org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditor [/oak:index/versionStoreIndex] Ignoring ordered property. Could not convert property cq:lastModified of type LONG to type DATE for path /jcr:system/jcr:versionStorage/e4/ec/2b/e4ec2b45-c92b-4d05-9d56-0c5dee81860a/1.0/jcr:frozenNode/metaData
{noformat}
We can handle such cases by using the value as is instead of forcing it to convert to DATE
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)