Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 349E6118D9 for ; Mon, 14 Jul 2014 22:21:35 +0000 (UTC) Received: (qmail 48624 invoked by uid 500); 14 Jul 2014 22:21:34 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 48570 invoked by uid 500); 14 Jul 2014 22:21:34 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 48551 invoked by uid 99); 14 Jul 2014 22:21:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2014 22:21:34 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of torgeir.veimo@gmail.com designates 74.125.82.182 as permitted sender) Received: from [74.125.82.182] (HELO mail-we0-f182.google.com) (74.125.82.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2014 22:21:28 +0000 Received: by mail-we0-f182.google.com with SMTP id q59so4808377wes.13 for ; Mon, 14 Jul 2014 15:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=VmU8XlX9ZI3fwVJNXVFS/e9mXmVaj+Ygm1jCCBPRYns=; b=qpNVZ28tIv5pXkBnYm4klwDd+Ld6LwVWqFjc5rk11aYBqYOxl9fEnfoo2nsoAMW7z2 bIWU0ab6RlQ/ORl+h53p8cRtsBbsAARc1i/GBGhkk/NUZwu3FPm9FDptUYK3kjXHmZOt bYhcD9cxk6agO3fI4wSgGnyvv3018HF5wcQdj/1BbFh5KFKOvAG1nIG+4vNqCuydgB/8 QDfGazokfaeZcaOrZeAquxHxAWzBEHMGHWmL1UL4HH+YY9RYrO/Fn/5x5ff1ytDJom4w l0gKnPfFzza6FZCvlHhrSle3rGlEPv4lN0gRCLHQCF731H4DYovgwQi5QhEv5k+bxVLs 61VA== MIME-Version: 1.0 X-Received: by 10.180.210.239 with SMTP id mx15mr670178wic.65.1405376467526; Mon, 14 Jul 2014 15:21:07 -0700 (PDT) Received: by 10.194.31.71 with HTTP; Mon, 14 Jul 2014 15:21:07 -0700 (PDT) Date: Tue, 15 Jul 2014 00:21:07 +0200 Message-ID: Subject: oak: setting up indexes From: Torgeir Veimo To: users@jackrabbit.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org I' seeing logs like 00:11:55,702 DEBUG jackrabbit.JackrabbitQuery.getQueryString() - line 242 [127.0.0.1] - queryString: /jcr:root/nen:content/pages-en//element(*,nen:resource)[@nen:type = '0'] 00:11:55,706 WARN strategy.ContentMirrorStoreStrategy$PathIterator.fetchNextPossiblyDuplicate() - line 278 [127.0.0.1] - Traversed 1000 nodes using index jcr:mixinTypes with filter Filter(query=select [jcr:path], [jcr:score], * from [nen:resource] as a where [nen:type] = '0' and isdescendantnode(a, '/nen:content/pages-en') /* xpath: /jcr:root/nen:content/pages-en//element(*,nen:resource)[@nen:type = '0'] */, path=/nen:content/pages-en//*, property=[nen:type=0]) [...] which I guess indicates that I need an index here (on jcr:path)? I've currently set up indexes in an RepositoryInitializer class with IndexUtils.createIndexDefinition(index, "nen:resourceid", true, false, org.elasticsearch.common.collect.ImmutableList.of("nen:resourceid"), null); IndexUtils.createIndexDefinition(index, "nen:type", true, false, org.elasticsearch.common.collect.ImmutableList.of("nen:type"), null); IndexUtils.createIndexDefinition(index, "nen:name", true, false, org.elasticsearch.common.collect.ImmutableList.of("nen:name"), null); My /oak:index node contains index definitions for nen:type, acPrincipalName, uuid, nen:resourceid,nen:name, nodetype, reference, principalName, lucene, authorizableId. -- -Tor