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 2026/03/25 13:58:00 UTC

(jackrabbit-oak) branch OAK-12146 updated: OAK-12146 Use the latest elastic OR lucene index, if there are multiple versions

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

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


The following commit(s) were added to refs/heads/OAK-12146 by this push:
     new 29f18d3bab OAK-12146 Use the latest elastic OR lucene index, if there are multiple versions
29f18d3bab is described below

commit 29f18d3bab35ca9dc705774c4c63174cb2d4403d
Author: Thomas Mueller <mu...@adobe.com>
AuthorDate: Wed Mar 25 14:57:26 2026 +0100

    OAK-12146 Use the latest elastic OR lucene index, if there are multiple versions
---
 .../jackrabbit/oak/plugins/index/search/spi/query/FulltextIndex.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/query/FulltextIndex.java b/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/query/FulltextIndex.java
index 8f3e29c918..bf796fae34 100644
--- a/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/query/FulltextIndex.java
+++ b/oak-search/src/main/java/org/apache/jackrabbit/oak/plugins/index/search/spi/query/FulltextIndex.java
@@ -149,7 +149,7 @@ public abstract class FulltextIndex implements AdvancedQueryIndex, QueryIndex, N
                         } else if (getIndexDefinitionPredicate().test(state)) {
                             // index of this type don't compete. this is to avoid
                             // that indexes that are disabled are considered competing
-                            return true;
+                            return false;
                         }
                         return COMPETING_INDEX_TYPES.contains(type);
                     })