You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by th...@apache.org on 2018/02/23 11:28:14 UTC

svn commit: r1825118 - in /jackrabbit/oak/trunk/oak-doc/src/site/markdown/query: grammar-sql2.md.vm grammar-xpath.md.vm

Author: thomasm
Date: Fri Feb 23 11:28:14 2018
New Revision: 1825118

URL: http://svn.apache.org/viewvc?rev=1825118&view=rev
Log:
OAK-5051 Document XPath (and SQL-2) syntax as supported by Oak

Modified:
    jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/grammar-sql2.md.vm
    jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/grammar-xpath.md.vm

Modified: jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/grammar-sql2.md.vm
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/grammar-sql2.md.vm?rev=1825118&r1=1825117&r2=1825118&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/grammar-sql2.md.vm (original)
+++ jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/grammar-sql2.md.vm Fri Feb 23 11:28:14 2018
@@ -227,6 +227,11 @@ Examples:
 
 The selector name is only needed if the query contains multiple selectors.
 
+Property names can be relative, so that for example 'jcr:content/test'
+means the property names 'test' in the child node 'jcr:content'.
+
+The wildcard '*' means any property.
+
 "coalesce": this returns the first operand if it is not null,
 and the second operand otherwise.
 `@since Oak 1.8`
@@ -243,6 +248,7 @@ Examples:
     lower([firstName])
     coalesce([lastName], name())
     length(coalesce([lastName], name()))
+    [jcr:content/title]
 
 ---
 

Modified: jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/grammar-xpath.md.vm
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/grammar-xpath.md.vm?rev=1825118&r1=1825117&r2=1825118&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/grammar-xpath.md.vm (original)
+++ jackrabbit/oak/trunk/oak-doc/src/site/markdown/query/grammar-xpath.md.vm Fri Feb 23 11:28:14 2018
@@ -276,6 +276,8 @@ Examples:
 #render( 'Dynamic Operand' )
 
 The "*" stands for any property.
+Using it in a condition requires a relative path. 
+For example: `[./* = 'test']` means where any property matches the word 'test'.
 
 "jcr:score()" is the score returned by the index.