Return-Path: X-Original-To: apmail-jackrabbit-commits-archive@www.apache.org Delivered-To: apmail-jackrabbit-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3CD2617672 for ; Thu, 26 Feb 2015 14:20:09 +0000 (UTC) Received: (qmail 14762 invoked by uid 500); 26 Feb 2015 14:20:09 -0000 Delivered-To: apmail-jackrabbit-commits-archive@jackrabbit.apache.org Received: (qmail 14715 invoked by uid 500); 26 Feb 2015 14:20:09 -0000 Mailing-List: contact commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list commits@jackrabbit.apache.org Received: (qmail 14704 invoked by uid 99); 26 Feb 2015 14:20:09 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2015 14:20:09 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id C5F79AC006C for ; Thu, 26 Feb 2015 14:20:08 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1662451 - /jackrabbit/site/live/oak/docs/query/query.html Date: Thu, 26 Feb 2015 14:20:08 -0000 To: commits@jackrabbit.apache.org From: thomasm@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150226142008.C5F79AC006C@hades.apache.org> Author: thomasm Date: Thu Feb 26 14:20:08 2015 New Revision: 1662451 URL: http://svn.apache.org/r1662451 Log: OAK-936: Site checkin for project Oak Documentation-1.1-SNAPSHOT Modified: jackrabbit/site/live/oak/docs/query/query.html Modified: jackrabbit/site/live/oak/docs/query/query.html URL: http://svn.apache.org/viewvc/jackrabbit/site/live/oak/docs/query/query.html?rev=1662451&r1=1662450&r2=1662451&view=diff ============================================================================== --- jackrabbit/site/live/oak/docs/query/query.html (original) +++ jackrabbit/site/live/oak/docs/query/query.html Thu Feb 26 14:20:08 2015 @@ -1,13 +1,13 @@ - + Jackrabbit Oak - The Query Engine @@ -192,7 +192,7 @@ +

It is recommended to index one property per index. (If multiple properties are indexed within one index, then the index contains all nodes that has either one of the properties, which can make the query less efficient, and can make the query pick the wrong index.)

Optionally you can specify

    @@ -610,8 +611,6 @@ org.apache.jackrabbit.oak.query.QueryEng IndexUtils.createIndexDefinition(index, "myProp", true, false, ImmutableList.of("myProp"), null); } -

    (Not sure if this is correct) Note on propertyNames Adding a property index definition that contains two or more properties will only include nodes that have all specified properties present. This is different than adding a dedicated property index for each and letting the query engine make use of them.

    -

    (Not sure if this is correct) Note Is is currently not possible to add more than one property index on the same property name, even if it might be used in various combinations with other property names. This rule is not enforced in any way, but the behavior is undefined, one of the defined indexes will be updated while the others will simply be ignored by the indexer which can result in empty result sets at query time.

    Reindexing

    Reindexing a property index happens synchronously by setting the reindex flag to true. This means that the first #save call will generate a full repository traversal with the purpose of building the index content and it might take a long time.