Return-Path: X-Original-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 488B11036E for ; Fri, 6 Dec 2013 22:23:13 +0000 (UTC) Received: (qmail 9271 invoked by uid 500); 6 Dec 2013 22:23:13 -0000 Delivered-To: apmail-jackrabbit-oak-dev-archive@jackrabbit.apache.org Received: (qmail 9242 invoked by uid 500); 6 Dec 2013 22:23:12 -0000 Mailing-List: contact oak-dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-dev@jackrabbit.apache.org Received: (qmail 9234 invoked by uid 99); 6 Dec 2013 22:23:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 22:23:12 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ianboston@gmail.com designates 209.85.192.169 as permitted sender) Received: from [209.85.192.169] (HELO mail-pd0-f169.google.com) (209.85.192.169) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Dec 2013 22:23:06 +0000 Received: by mail-pd0-f169.google.com with SMTP id v10so1754533pde.28 for ; Fri, 06 Dec 2013 14:22:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=En6RfTxnTPbk8lrStDzZXOrs4HLzRYiOa/F1lfL8a0o=; b=d1+mhHG2SBnDbxpO2gHLEeldyPHBxGTowpmMicpBzqSdwp+4tSewkkC10qpds8daTj ugSSss9AlVKHYIatTz1XkNLDXBM7YaWEI9OGNS0G+OONjosKt/juPvA3QeV9QEhbRkhf eVbvarg9M9t1XTq1Nm+w8dqwIkO3uqgvwU8glR4hg4RIRdG4nv4XVLv2iUYnpldZtzli M6n5V5oAOyOJRdN/Eq5IHq2C7eAyFkNrmPCvZY06owYiyNahqbRheONsoC5A/JBXDSL3 zzf1ipDwWq9EPXXD/tmJlEm3x34bJpTfuORhgfu/BOqFWJSWr0wyXG7Ah8YiaS8C5mr1 k18Q== MIME-Version: 1.0 X-Received: by 10.69.11.194 with SMTP id ek2mr6745482pbd.111.1386368564857; Fri, 06 Dec 2013 14:22:44 -0800 (PST) Sender: ianboston@gmail.com Received: by 10.69.14.225 with HTTP; Fri, 6 Dec 2013 14:22:44 -0800 (PST) In-Reply-To: References: Date: Sat, 7 Dec 2013 03:52:44 +0530 X-Google-Sender-Auth: 1saDpn6pAFZpZjeITyu4tFWGM3c Message-ID: Subject: Re: Question about Oak search/query. From: Ian Boston To: "oak-dev@jackrabbit.apache.org" Content-Type: multipart/alternative; boundary=047d7b6721acd6127404ece5152e X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6721acd6127404ece5152e Content-Type: text/plain; charset=ISO-8859-1 On Friday, December 6, 2013, Tommaso Teofili wrote: > Hi, > > 2013/12/6 Ian Boston > > > > Hi, > > > > On 6 December 2013 16:12, Tommaso Teofili > > > > wrote: > > > Hi all, > > > > > > 2013/12/6 Jukka Zitting > > > > > > >> Hi, > > >> > > >> On Thu, Dec 5, 2013 at 9:36 PM, Ian Boston > > wrote: > > >> > Will the search index contain access control information or will the > > >> > search results be filtered as each result is retrieved ? > > >> > > >> The results will be filtered after the index lookup. It would be > > >> possible for a custom search index to do the access checks already > > >> when building/updating the index, but even in that case the query > > >> engine would still double-check the access rights (the benefit would > > >> be to avoid having to retrieve and then discard many inaccessible > > >> hits). > > >> > > > > > > by the way, probably there's room for some optimization, e.g. very > simple > > > idea: exclude paths at depth 1 (children of root node) the principle is > > not > > > able to read (which may mean adding them to the query passed to the > Index > > > implementation), if any, then you'd always have to apply fine grained > > ACLs > > > on the result but maybe excluding some branches from start may help. > > > > > > Ok, thank you, it is as I thought. It may be possible to work around > > it by adding some properties to make the result dense. > > > > > > > > > > >> > > >> > If the number of terms in the query exceeds the number of terms > > >> > supported by Solr, does the Oak handle that transparently ? > > >> > > >> I'm not sure, you'll need to look at the oak-solr indexing code. Or > > >> perhaps Tommaso who wrote the code can chime in here. > > >> > > > > > > sure. > > > What limitation are you exactly referring to? Is it the BooleanQuery > max > > > clause limit [1]? > > > > Yes, I believe its that limit. > > > > Do you know how many that is in the version used by Oak ? > > > > At the moment Oak has the Solr dependency with scope provided, version > 4.1.0 (which uses Lucene 4.1.0) so that one could use from 4.1.x to the > latest (4.6.0 right now). > Default is 1024. Hi, Thank you. All questions on this thread answered. Best regards Ian > > Regards, > Tommaso > > > > > > > > > > Regards, > > > Tommaso > > > > > > > > > [1] : > > > > > > http://lucene.apache.org/core/4_6_0/core/org/apache/lucene/search/BooleanQuery.TooManyClauses.html > > > > > > > > >> BR, > > >> > > >> Jukka Zitting > > >> > > > --047d7b6721acd6127404ece5152e--