Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 57742 invoked from network); 17 Nov 2010 20:54:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 20:54:58 -0000 Received: (qmail 78538 invoked by uid 500); 17 Nov 2010 20:55:29 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 78509 invoked by uid 500); 17 Nov 2010 20:55:29 -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 78496 invoked by uid 99); 17 Nov 2010 20:55:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 20:55:28 +0000 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of luishernan@gmail.com designates 209.85.212.42 as permitted sender) Received: from [209.85.212.42] (HELO mail-vw0-f42.google.com) (209.85.212.42) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 20:55:24 +0000 Received: by vws9 with SMTP id 9so1378834vws.1 for ; Wed, 17 Nov 2010 12:55:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=szEa1drjkwdqJqNgCCeOVqL7tZEOZEZX17+f/sZnoyY=; b=xyVIkrUZPhsPnOO7Xey8qABMdBnWZVDYta1bScY5h7JNQX2qcZXDG3p996PdCUU2t3 Pfptasd5MSf5Y17dmKu7yuNQ9MHdtei3IFjbKywReXCssYK3wfRxXivr0RsWI8rfVzxD 1koLPddU3yd0wzE7K/zHRnvIwKafcTYqopeYY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=xTjTGEvzFc5RjUR2YufG2qlcxXv/6Y8TKYbvvsAwBRGVLM/lEl8BQTgWLtgJ+arye2 UVdcFLUYxIryz5VnkLPivcyCG3a5ud/mPW2zJIA5uAg0bMwA2cb0A2jZDaOT6JaNj7xA l8/TPNhYOLnhtjE2nbR1+rijDn27L1x+3pxHY= MIME-Version: 1.0 Received: by 10.229.28.68 with SMTP id l4mr7377981qcc.156.1290027303291; Wed, 17 Nov 2010 12:55:03 -0800 (PST) Received: by 10.229.234.20 with HTTP; Wed, 17 Nov 2010 12:55:03 -0800 (PST) In-Reply-To: References: <4CE24818.60506@dig.de> <4CE2ADD2.4010100@dig.de> <1289986080495-3046345.post@n4.nabble.com> Date: Wed, 17 Nov 2010 12:55:03 -0800 Message-ID: Subject: Re: Query over multiple workspaces From: "Luis H. Fernandez" To: users@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=0016363b8ef829cc54049545e3a5 --0016363b8ef829cc54049545e3a5 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Thanks all. Good to know that! --=20 -- "The most beautiful thing we can experience is the mysterious. It is the source of all true art and all science. He to whom this emotion is a stranger, who can no longer pause to wonder and stand rapt in awe, is as good as dead: his eyes are closed." (A. Einstein) On Wed, Nov 17, 2010 at 2:56 AM, Ard Schrijvers wrote: > On Wed, Nov 17, 2010 at 10:28 AM, Gadbury wrote: > > > > Sorry to jump on this thread but it seems like the relevant place to as= k > the > > question. > > > > If we used versioning to archive old content, is it possible to > dynamically > > include / exclude the versioned content in a query? > > > > I'm working on an ecommerce web app whereby digital content can be > > downloaded. If a product is removed (or rather, removed from sale), > users > > that have purchased he product should still be able to download the > content > > (so really, it is not deleted). It would make sense for me to be able = to > > differentiate between 'deleted' and non-deleted products. At present, = I > > just use a boolean flag but it's not ideal. It would be nice to be abl= e > to > > have two queries.... one that queries just the available content and on= e > > that queries available and archived content. Is this possible? > > By default the switch is made by checking the query: If it does not > start with /jcr:root/jcr:system, then versioning index is skipped as > it can never have a hit there. > > If you want to query version history as well, you cannot include a > path constraint that is 'outside' versioning. You can also extend the > SearchIndex to hook in your own logic whether the version index should > be used. I don't think however you can somehow 'add' this info to a > query like xpath: how would this look in xpath? > > Regards Ard > > > -- > > View this message in context: > http://jackrabbit.510166.n4.nabble.com/Query-over-multiple-workspaces-tp3= 044432p3046345.html > > Sent from the Jackrabbit - Users mailing list archive at Nabble.com. > > > > > > -- > Hippo > Europe =95 Amsterdam Oosteinde 11 =95 1017 WT Amsterdam =95 +31 (0= )20 522 > 4466 > USA =95 San Francisco 185 H Street Suite B =95 Petaluma CA 94952-5100 > =95 +1 (707) 773 4646 > Canada =95 Montr=E9al 5369 Boulevard St-Laurent =95 Montr=E9al QC= H2T > 1S5 =95 +1 (514) 316 8966 > www.onehippo.com =95 www.onehippo.org =95 info@onehippo.com > --0016363b8ef829cc54049545e3a5--