You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2009/01/23 10:50:59 UTC

[jira] Created: (JCR-1951) Improve typed comparison expressions

Improve typed comparison expressions
------------------------------------

                 Key: JCR-1951
                 URL: https://issues.apache.org/jira/browse/JCR-1951
             Project: Jackrabbit Content Repository
          Issue Type: Improvement
          Components: jackrabbit-core
            Reporter: Marcel Reutegger
            Priority: Minor


Queries that include a typed comparison expression like: @a > 5 may produce confusing results because all properties
named 'a' are indexed using the same lucene field. The result may include nodes that have a property 'a', which is not of type long.

As of jackrabbit-core 1.5 the property values are indexed with type information, which could be used on query time. An alternative would be to index values with their type information in the lucene field name.

In any case we should check with the XPath specification to have a consistent behavior when type conversion is needed in a comparison expression.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.