You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by th...@apache.org on 2021/07/07 15:09:00 UTC
svn commit: r1891367 - /jackrabbit/site/live/oak/docs/query/lucene.html
Author: thomasm
Date: Wed Jul 7 15:09:00 2021
New Revision: 1891367
URL: http://svn.apache.org/viewvc?rev=1891367&view=rev
Log:
OAK-936: Site checkin for project Oak Documentation-1.41-SNAPSHOT
Modified:
jackrabbit/site/live/oak/docs/query/lucene.html
Modified: jackrabbit/site/live/oak/docs/query/lucene.html
URL: http://svn.apache.org/viewvc/jackrabbit/site/live/oak/docs/query/lucene.html?rev=1891367&r1=1891366&r2=1891367&view=diff
==============================================================================
--- jackrabbit/site/live/oak/docs/query/lucene.html (original)
+++ jackrabbit/site/live/oak/docs/query/lucene.html Wed Jul 7 15:09:00 2021
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<!--
- | Generated by Apache Maven Doxia Site Renderer 1.8.1 at 2021-07-05
+ | Generated by Apache Maven Doxia Site Renderer 1.8.1 at 2021-07-07
| Rendered using Apache Maven Fluido Skin 1.6
-->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="Date-Revision-yyyymmdd" content="20210705" />
+ <meta name="Date-Revision-yyyymmdd" content="20210707" />
<meta http-equiv="Content-Language" content="en" />
<title>Jackrabbit Oak – Lucene Index</title>
<link rel="stylesheet" href="../css/apache-maven-fluido-1.6.min.css" />
@@ -156,7 +156,7 @@
<div id="breadcrumbs">
<ul class="breadcrumb">
- <li id="publishDate">Last Published: 2021-07-05<span class="divider">|</span>
+ <li id="publishDate">Last Published: 2021-07-07<span class="divider">|</span>
</li>
<li id="projectVersion">Version: 1.41-SNAPSHOT</li>
</ul>
@@ -666,6 +666,20 @@
</dd>
</dl>
<p>Refer to <a class="externalLink" href="https://issues.apache.org/jira/browse/OAK-2196">Lucene based Sorting</a> for more details. Note that this is only supported for single value property. Enabling this on multi value property would cause indexing to fail.</p>
+<p>Ordering is supported on properties, and on functions. To order on the name of the node, use the following query and index definition:</p>
+
+<div>
+<div>
+<pre class="source">SELECT * FROM [sling:Folder] WHERE ISCHILDNODE('/content') ORDER BY NAME()
+
++ sling:Folder
+ + properties (nt:unstructured)
+ + nodeName (nt:unstructured)
+ - function (string) = 'name()'
+ - propertyIndex (boolean) = true
+ - ordered (boolean) = true
+</pre></div></div>
+
<dl>
<dt>type</dt>