jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1593052 - in /jackrabbit/oak/branches/1.0: ./ oak-doc/ oak-doc/src/site/markdown/query.md
Date Wed, 07 May 2014 16:21:15 GMT
Author: mduerig
Date: Wed May  7 16:21:14 2014
New Revision: 1593052

URL: http://svn.apache.org/r1593052
Log:
OAK-301: Document Oak
Merged r1587488

Modified:
    jackrabbit/oak/branches/1.0/   (props changed)
    jackrabbit/oak/branches/1.0/oak-doc/   (props changed)
    jackrabbit/oak/branches/1.0/oak-doc/src/site/markdown/query.md

Propchange: jackrabbit/oak/branches/1.0/
------------------------------------------------------------------------------
  Merged /jackrabbit/oak/trunk:r1587488

Propchange: jackrabbit/oak/branches/1.0/oak-doc/
------------------------------------------------------------------------------
  Merged /jackrabbit/oak/trunk/oak-doc:r1587488

Modified: jackrabbit/oak/branches/1.0/oak-doc/src/site/markdown/query.md
URL: http://svn.apache.org/viewvc/jackrabbit/oak/branches/1.0/oak-doc/src/site/markdown/query.md?rev=1593052&r1=1593051&r2=1593052&view=diff
==============================================================================
--- jackrabbit/oak/branches/1.0/oak-doc/src/site/markdown/query.md (original)
+++ jackrabbit/oak/branches/1.0/oak-doc/src/site/markdown/query.md Wed May  7 16:21:14 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. 



Mime
View raw message