[jira] Created: (JCR-1659) Support searching parent nodes in query brackets

8 messages Options
Embed this post
Permalink
JIRA jira@apache.org

[jira] Created: (JCR-1659) Support searching parent nodes in query brackets

Reply Threaded More More options
Print post
Permalink
Support searching parent nodes in query brackets
------------------------------------------------

                 Key: JCR-1659
                 URL: https://issues.apache.org/jira/browse/JCR-1659
             Project: Jackrabbit
          Issue Type: New Feature
    Affects Versions: 1.4
            Reporter: Dan Diephouse


We need to be able to do the following inside our application:

/blogs/blog/entry[@title='Jackrabbit' or ../@author='Dan Diephouse']

The example is contrived, but the need is real. Neither "../" or "parent::" seems to be supported currently. See this thread for the original discussion: http://markmail.org/message/dyxnobdwd7sofmes

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

JIRA jira@apache.org

[jira] Updated: (JCR-1659) Support parent axis inside Xpath predicates

Reply Threaded More More options
Print post
Permalink

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

Alexander Klimetschek updated JCR-1659:
---------------------------------------

    Component/s: query
                 jackrabbit-core
       Priority: Minor  (was: Major)
        Summary: Support parent axis inside Xpath predicates  (was: Support searching parent nodes in query brackets)

> Support parent axis inside Xpath predicates
> -------------------------------------------
>
>                 Key: JCR-1659
>                 URL: https://issues.apache.org/jira/browse/JCR-1659
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: jackrabbit-core, query
>    Affects Versions: 1.4
>            Reporter: Dan Diephouse
>            Priority: Minor
>
> We need to be able to do the following inside our application:
> /blogs/blog/entry[@title='Jackrabbit' or ../@author='Dan Diephouse']
> The example is contrived, but the need is real. Neither "../" or "parent::" seems to be supported currently. See this thread for the original discussion: http://markmail.org/message/dyxnobdwd7sofmes

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

JIRA jira@apache.org

[jira] Commented: (JCR-1659) Support parent axis inside Xpath predicates

Reply Threaded More More options
Print post
Permalink
In reply to this post by JIRA jira@apache.org

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

Dan Diephouse commented on JCR-1659:
------------------------------------

Any ETA on when this might be implemented? Currently it blocks some stuff we need to do for our applicaiton.

> Support parent axis inside Xpath predicates
> -------------------------------------------
>
>                 Key: JCR-1659
>                 URL: https://issues.apache.org/jira/browse/JCR-1659
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: jackrabbit-core, query
>    Affects Versions: 1.4
>            Reporter: Dan Diephouse
>            Priority: Minor
>
> We need to be able to do the following inside our application:
> /blogs/blog/entry[@title='Jackrabbit' or ../@author='Dan Diephouse']
> The example is contrived, but the need is real. Neither "../" or "parent::" seems to be supported currently. See this thread for the original discussion: http://markmail.org/message/dyxnobdwd7sofmes

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

JIRA jira@apache.org

[jira] Updated: (JCR-1659) Support parent axis inside Xpath predicates

Reply Threaded More More options
Print post
Permalink
In reply to this post by JIRA jira@apache.org

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

Jukka Zitting updated JCR-1659:
-------------------------------

    Remaining Estimate: 0h
     Original Estimate: 0h

> Any ETA on when this might be implemented?

Not really. AFAIK nobody is actively working on this.

If someone wants to take a shot at this, then a good starting point would be to review the changes associated with JCR-247.

> Support parent axis inside Xpath predicates
> -------------------------------------------
>
>                 Key: JCR-1659
>                 URL: https://issues.apache.org/jira/browse/JCR-1659
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: jackrabbit-core, query
>    Affects Versions: 1.4
>            Reporter: Dan Diephouse
>            Priority: Minor
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> We need to be able to do the following inside our application:
> /blogs/blog/entry[@title='Jackrabbit' or ../@author='Dan Diephouse']
> The example is contrived, but the need is real. Neither "../" or "parent::" seems to be supported currently. See this thread for the original discussion: http://markmail.org/message/dyxnobdwd7sofmes

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

JIRA jira@apache.org

[jira] Updated: (JCR-1659) Support parent axis inside Xpath predicates

Reply Threaded More More options
Print post
Permalink
In reply to this post by JIRA jira@apache.org

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

Dan Diephouse updated JCR-1659:
-------------------------------

    Attachment: patch.txt

This fixes this issue and adds some unit tests for it. Would be great to get some feedback on this!

> Support parent axis inside Xpath predicates
> -------------------------------------------
>
>                 Key: JCR-1659
>                 URL: https://issues.apache.org/jira/browse/JCR-1659
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core, query
>    Affects Versions: 1.4
>            Reporter: Dan Diephouse
>            Priority: Minor
>         Attachments: patch.txt
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> We need to be able to do the following inside our application:
> /blogs/blog/entry[@title='Jackrabbit' or ../@author='Dan Diephouse']
> The example is contrived, but the need is real. Neither "../" or "parent::" seems to be supported currently. See this thread for the original discussion: http://markmail.org/message/dyxnobdwd7sofmes

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

JIRA jira@apache.org

[jira] Commented: (JCR-1659) Support parent axis inside Xpath predicates

Reply Threaded More More options
Print post
Permalink
In reply to this post by JIRA jira@apache.org

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

Marcel Reutegger commented on JCR-1659:
---------------------------------------

Comments on patch:

- JackrabbitIndexSearcher only contains rearranged imports
- We should rather use PathFactory.getParentElement() instead of defining a new name
- It seems LuceneQueryBuilder.visit(LocationStepQueryNode,Object) does not respect includeDescendants() for parent name
- QueryFormat probably has to be adapted to support round tripping abstract query tree to XPath/SQL
- Test case are missing

> Support parent axis inside Xpath predicates
> -------------------------------------------
>
>                 Key: JCR-1659
>                 URL: https://issues.apache.org/jira/browse/JCR-1659
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core, query
>    Affects Versions: 1.4
>            Reporter: Dan Diephouse
>            Priority: Minor
>         Attachments: patch.txt
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> We need to be able to do the following inside our application:
> /blogs/blog/entry[@title='Jackrabbit' or ../@author='Dan Diephouse']
> The example is contrived, but the need is real. Neither "../" or "parent::" seems to be supported currently. See this thread for the original discussion: http://markmail.org/message/dyxnobdwd7sofmes

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

JIRA jira@apache.org

[jira] Commented: (JCR-1659) Support parent axis inside Xpath predicates

Reply Threaded More More options
Print post
Permalink
In reply to this post by JIRA jira@apache.org

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

Dan Diephouse commented on JCR-1659:
------------------------------------

Thanks Marcel. I'll see what I can do about getting an updated patch out tomorrow.

> Support parent axis inside Xpath predicates
> -------------------------------------------
>
>                 Key: JCR-1659
>                 URL: https://issues.apache.org/jira/browse/JCR-1659
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core, query
>    Affects Versions: 1.4
>            Reporter: Dan Diephouse
>            Priority: Minor
>         Attachments: patch.txt
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> We need to be able to do the following inside our application:
> /blogs/blog/entry[@title='Jackrabbit' or ../@author='Dan Diephouse']
> The example is contrived, but the need is real. Neither "../" or "parent::" seems to be supported currently. See this thread for the original discussion: http://markmail.org/message/dyxnobdwd7sofmes

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

JIRA jira@apache.org

[jira] Resolved: (JCR-1659) Support parent axis inside Xpath predicates

Reply Threaded More More options
Print post
Permalink
In reply to this post by JIRA jira@apache.org

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

Marcel Reutegger resolved JCR-1659.
-----------------------------------

    Resolution: Duplicate

AFAICS this feature is also covered with changed made for JCR-977. Closing this as duplicate.

> Support parent axis inside Xpath predicates
> -------------------------------------------
>
>                 Key: JCR-1659
>                 URL: https://issues.apache.org/jira/browse/JCR-1659
>             Project: Jackrabbit Content Repository
>          Issue Type: New Feature
>          Components: jackrabbit-core, query
>    Affects Versions: 1.4
>            Reporter: Dan Diephouse
>            Priority: Minor
>         Attachments: patch.txt
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> We need to be able to do the following inside our application:
> /blogs/blog/entry[@title='Jackrabbit' or ../@author='Dan Diephouse']
> The example is contrived, but the need is real. Neither "../" or "parent::" seems to be supported currently. See this thread for the original discussion: http://markmail.org/message/dyxnobdwd7sofmes

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