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

Marcel Reutegger resolved JCR-906.
----------------------------------

    Resolution: Fixed

Committed in revision: 537767

The rep:similar() function now has the following syntax:

rep:similar(<relative-path>, <abs-path-string>)

E.g. the initial example must now be written as:

//*[rep:similar(., "/foo/bar")]

it is now also possible to find node that have a child node similar to another 
node:

//*[rep:similar(foo, "/foo/bar")]

finds all nodes that have a 'foo' child node similar to the node at path 
/foo/bar.

> Introduce similarity function
> -----------------------------
>
>                 Key: JCR-906
>                 URL: https://issues.apache.org/jira/browse/JCR-906
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: query
>            Reporter: Marcel Reutegger
>            Priority: Minor
>             Fix For: 1.4
>
>
> The query handler should support a similarity function that allows one to 
> find nodes that are similar to a given existing one.
> Example:
> //*[rep:similar("/foo/bar")]
> Finds nodes that are similar to node /foo/bar.

-- 
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