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

mreutegg edited comment on JCR-1369 at 7/18/08 9:10 AM:
----------------------------------------------------------------

Indexing configuration now allows to define a index-rule with a property name 
pattern. The pattern is limited to the local name and is a regular expression 
(see java.util.regex). A regular expression for the prefix is not supported.

Please note that you have to indicate in the configuration that you use a 
regular expression:

    <index-rule nodeType="nt:unstructured">
        <property isRegexp="true">.*Text</property>
    </index-rule>

The default value for isRegexp is false.

Implemented in revision: 677952

      was (Author: mreutegg):
    Indexing configuration now allows to define an aggregate with a property 
name pattern. The pattern is limited to the local name and is a regular 
expression (see java.util.regex). A regular expression for the prefix is not 
supported.

Please note that you have to indicate in the configuration that you use a 
regular expression:

    <index-rule nodeType="nt:unstructured">
        <property isRegexp="true">.*Text</property>
    </index-rule>

The default value for isRegexp is false.

Implemented in revision: 677952
  
> indexing-rules should allow wildcards for (global) property names
> -----------------------------------------------------------------
>
>                 Key: JCR-1369
>                 URL: https://issues.apache.org/jira/browse/JCR-1369
>             Project: Jackrabbit
>          Issue Type: Improvement
>          Components: query
>            Reporter: Tobias Bocanegra
>             Fix For: 1.5
>
>
> eg:
> <indexing-rule nodeType="*">
>   <property>text</property>
>   <property>*Text</property>
> </indexing-rule>
> defines that all properties named 'text' and all that end with 'Text' should 
> be fulltext indexed.
> if the property name includes namespace prefixes, wildcards are only allowed 
> for 'any' namespace. eg:
> *:title
> but not: j*:title

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

Reply via email to