jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Damioli (JIRA) <j...@apache.org>
Subject [jira] [Commented] (JCR-3443) Normalize String properties when ordering query results
Date Thu, 11 Oct 2012 13:13:03 GMT

    [ https://issues.apache.org/jira/browse/JCR-3443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474126#comment-13474126

Cédric Damioli commented on JCR-3443:

a) Do you suggest someting like "rep:normalize" ?

b) I did not actually tried to implement a collation algorithm, which certainly depends on
locales, but instead a normalization algorithm (http://www.unicode.org/reports/tr15/) which
do not depend on locales.
I could have implement it using java.text.Normalizer.normalize(), followed by the removal
of non ASCII-characters, but this is roughly equivalent to the more easier Unicode-to-ASCII
method I found in the Lucene code.

> Normalize String properties when ordering query results
> -------------------------------------------------------
>                 Key: JCR-3443
>                 URL: https://issues.apache.org/jira/browse/JCR-3443
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core, query
>            Reporter: Cédric Damioli
>         Attachments: normalize.patch
> Properties containing non-ASCII characters are not well collated in query results
> There's only two allowed functions so far in XPath (fn:lower-case and fn:upper-case).
There exists the equivalent LOWER and UPPER in SQL
> I propose to add a fn:normalize (resp NORMALIZE) function giving expected results

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message