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 2014/04/15 11:30:25 UTC

svn commit: r1587488 - /jackrabbit/oak/trunk/oak-doc/src/site/markdown/query.md

Author: thomasm
Date: Tue Apr 15 09:30:24 2014
New Revision: 1587488

URL: http://svn.apache.org/r1587488
Log:
OAK-319 Similar (rep:similar) support

Modified:
    jackrabbit/oak/trunk/oak-doc/src/site/markdown/query.md

Modified: jackrabbit/oak/trunk/oak-doc/src/site/markdown/query.md
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-doc/src/site/markdown/query.md?rev=1587488&r1=1587487&r2=1587488&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-doc/src/site/markdown/query.md (original)
+++ jackrabbit/oak/trunk/oak-doc/src/site/markdown/query.md Tue Apr 15 09:30:24 2014
@@ -97,6 +97,17 @@ feature. An example query is:
 
 If no full-text implementation is available, those queries will fail.
 
+### Similarity Queries
+
+Oak supports similarity queries when using the Lucene full-text index. 
+For example, the following query will return nodes that have similar content than
+the node /test/a:
+
+    //element(*, nt:base)[rep:similar(., '/test/a')]
+    
+Compared to Jackrabbit 2.x, support for rep:similar has the following limitations:
+Full-text aggregation is not currently supported.
+
 ### XPath to SQL2 Transformation
 
 To support the XPath query language, such queries are internally converted to SQL2.