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 2023/04/17 14:16:04 UTC

[jackrabbit-oak] branch trunk updated: OAK-9625 Support ordered index for first value of a multi-valued property, node name, and path

This is an automated email from the ASF dual-hosted git repository.

thomasm pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 941050b89d OAK-9625 Support ordered index for first value of a multi-valued property, node name, and path
941050b89d is described below

commit 941050b89d6db8332ecf30ef56b8bb00a9a54ea7
Author: Thomas Mueller <th...@apache.org>
AuthorDate: Mon Apr 17 16:15:48 2023 +0200

    OAK-9625 Support ordered index for first value of a multi-valued property, node name, and path
---
 oak-doc/src/site/markdown/query/lucene.md | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/oak-doc/src/site/markdown/query/lucene.md b/oak-doc/src/site/markdown/query/lucene.md
index a12dfb027d..4774a986e8 100644
--- a/oak-doc/src/site/markdown/query/lucene.md
+++ b/oak-doc/src/site/markdown/query/lucene.md
@@ -396,6 +396,9 @@ name
 
   If `isRegexp` is true, then the property name is a regular expression.
 
+  Special properties such as "jcr:path", "jcr:score" can not be indexed.
+  The path can be indexes using a function-based index in recent versions of Oak.
+
 isRegexp
 : If set to true, then the property name is interpreted as a regular
   expression, and the given definition is applicable for matching property names.
@@ -512,7 +515,7 @@ excludeFromAggregation
 : If set to true, the property is excluded from aggregation [OAK-3981][OAK-3981]
 
 function
-: Since 1.5.11, 1.6.0
+: Since 1.5.11, 1.6.0, 1.42.0
 : Function, for [function-based indexing](#function-based-indexing).
 
 dynamicBoost
@@ -1129,10 +1132,10 @@ contain data for the subtree under `/content/companya`
 
 ### <a name="function-based-indexing"></a>Function-Based Indexing
 
-`@since Oak 1.5.11, 1.6.0`
+`@since Oak 1.5.11, 1.6.0, 1.42.0`
 
 Function-based indexes can for example allow to search (or order by) the lower case version of a property.
-For more details see [OAK-3574][OAK-3574].
+For more details see [OAK-3574][OAK-3574] and [OAK-9625][OAK-9625].
 
 For example using the index definition
 
@@ -1162,6 +1165,8 @@ Indexing multi-valued properties is supported.
 Relative properties are supported (except for ".." and ".").
 Range conditions are supported ('>', '>=', '<=', '<').
 
+The functions path(), first(), and name() require Oak version 1.42.0 or newer.
+
 ### <a name="dynamic-boost"></a>Dynamic Boost
 
 `@since Oak 1.28.0`
@@ -2185,6 +2190,7 @@ SELECT rep:facet(title) FROM [app:Asset] WHERE [title] IS NOT NULL
 [OAK-7379]: https://issues.apache.org/jira/browse/OAK-7379
 [OAK-7739]: https://issues.apache.org/jira/browse/OAK-7739
 [OAK-8971]: https://issues.apache.org/jira/browse/OAK-8971
+[OAK-9625]: https://issues.apache.org/jira/browse/OAK-9625
 [luke]: https://code.google.com/p/luke/
 [tika]: http://tika.apache.org/
 [oak-console]: https://github.com/apache/jackrabbit-oak/tree/trunk/oak-run#console