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 "Thomas Mueller (Jira)" <ji...@apache.org> on 2022/08/19 07:44:00 UTC

[jira] [Updated] (OAK-5187) Support regex for relative property path while indexing properties

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

Thomas Mueller updated OAK-5187:
--------------------------------
    Description: 
Lucene index definition currently support index properties based on regex. The regex support is currently restricted to property name only and not for relative property paths.

However at time we have queries like below
{noformat}
/jcr:root/content/docs//element(*,app:Asset)[(jcr:content/targeting_123/section_456/@foo=110)]
{noformat}

Here the relative property path can vary. To index them we need to support relative property based on regex or globs 'jcr:content/\*/\*/foo'


----


BTW, what is already support is using a wildcard (but not regular expression), see https://jackrabbit.apache.org/oak/docs/query/lucene.html: 
"For relative properties, one wildcard (\*) is supported instead of a node name: \*/color aggregates the values of the property color of all direct child nodes."

  was:
Lucene index definition currently support index properties based on regex. The regex support is currently restricted to property name only and not for relative property paths.

However at time we have queries like below
{noformat}
/jcr:root/content/docs//element(*,app:Asset)[(jcr:content/targeting_123/section_456/@foo=110)]
{noformat}

Here the relative property path can vary. To index them we need to support relative property based on regex or globs 'jcr:content/\*/\*/foo'


> Support regex for relative property path while indexing properties
> ------------------------------------------------------------------
>
>                 Key: OAK-5187
>                 URL: https://issues.apache.org/jira/browse/OAK-5187
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: lucene
>            Reporter: Chetan Mehrotra
>            Priority: Major
>
> Lucene index definition currently support index properties based on regex. The regex support is currently restricted to property name only and not for relative property paths.
> However at time we have queries like below
> {noformat}
> /jcr:root/content/docs//element(*,app:Asset)[(jcr:content/targeting_123/section_456/@foo=110)]
> {noformat}
> Here the relative property path can vary. To index them we need to support relative property based on regex or globs 'jcr:content/\*/\*/foo'
> ----
> BTW, what is already support is using a wildcard (but not regular expression), see https://jackrabbit.apache.org/oak/docs/query/lucene.html: 
> "For relative properties, one wildcard (\*) is supported instead of a node name: \*/color aggregates the values of the property color of all direct child nodes."



--
This message was sent by Atlassian Jira
(v8.20.10#820010)