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 2010/01/11 14:00:54 UTC

[jira] Updated: (JCR-2458) Allow basic regexp in namespace prefix of index-rule

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

Marcel Reutegger updated JCR-2458:
----------------------------------

    Attachment: JCR-2458.patch

Proposed patch.

> Allow basic regexp in namespace prefix of index-rule
> ----------------------------------------------------
>
>                 Key: JCR-2458
>                 URL: https://issues.apache.org/jira/browse/JCR-2458
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-core
>            Reporter: Marcel Reutegger
>            Priority: Minor
>         Attachments: JCR-2458.patch
>
>
> Currently a regular expression is limited to the local name, which makes fallback declarations that should match everything else difficult to write. I.e. you have to write a line per namespace in the node type registry, which bloats the index-rule unnecessarily.
> Currently:
> <property isRegexp="true">.*</property>
> will only match properties with the empty namespace URI.
> I propose we allow a basic regular expression in the prefix. That is the match all pattern: '.*' (dot star).
> The following would match any property, including any namespace:
> <property isRegexp="true">.*:.*</property>

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