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 51E16107FE for ; Thu, 19 Sep 2013 18:07:30 +0000 (UTC) Received: (qmail 17630 invoked by uid 500); 19 Sep 2013 18:07:29 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 17429 invoked by uid 500); 19 Sep 2013 18:07:25 -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 17404 invoked by uid 99); 19 Sep 2013 18:07:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Sep 2013 18:07:24 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of justinedelson@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-ob0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Sep 2013 18:07:18 +0000 Received: by mail-ob0-f180.google.com with SMTP id wm4so10476171obc.11 for ; Thu, 19 Sep 2013 11:06:57 -0700 (PDT) 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=rVHsrWg0b6dNmMLkN3//Ap2gtVAP7TtBt0Aueg+yX6U=; b=aXrjDEQq3kVMVjBELXixDj6OUqxloGN0bjVs9G+/sTQ36yxvW4Z9Fs0Z1z1aMlBvPr HXQvK0ayqQg6EI6sH9653b/xYAoYIBa6iCLZ+AQgGLYp3IRhQEOx9JrTEWvxvWi3OwT5 UXRAaH/Eur3/HPXAu7eclQoUa5tBH23la2o6CZEvnvtPh7JC7VPVudMffAkT11F5/1GX Q3qK2jW6qd1LWNtWeQ36m9jGrvES+sDnQTcOkxLJtwZfmCuQBqlM/N+/KnSFKlt6BI/6 9iCl1bmfAn1U+gregMRO2ko2l6q7M8jJrAWzjD+51c2pl3jo2fTZCL19gkWwmUWqjrG6 O+/A== MIME-Version: 1.0 X-Received: by 10.182.237.75 with SMTP id va11mr2199016obc.5.1379614017241; Thu, 19 Sep 2013 11:06:57 -0700 (PDT) Sender: justinedelson@gmail.com Received: by 10.182.8.7 with HTTP; Thu, 19 Sep 2013 11:06:57 -0700 (PDT) In-Reply-To: <1379602191397-4659556.post@n4.nabble.com> References: <1379602191397-4659556.post@n4.nabble.com> Date: Thu, 19 Sep 2013 14:06:57 -0400 X-Google-Sender-Auth: h-Exj_4QmD5YcPz7qLjcuYICahs Message-ID: Subject: Re: Searching by exclusions From: Justin Edelson To: users Content-Type: multipart/alternative; boundary=e89a8ff1c99e6d19f904e6c06bb1 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1c99e6d19f904e6c06bb1 Content-Type: text/plain; charset=ISO-8859-1 Hi, I think you want //element(*,nt:file)[@prop:group != '9ef90c86-734a-414e-84c3-64dc6452864c'] You should be using the JCR specification as the point of reference. The fact that Lucene is used is an implementation detail. Regards, Justin On Thu, Sep 19, 2013 at 10:49 AM, hsp wrote: > I need to search for nodes that does not have a certain uuid value into a > multi-value property (or is empty). > I tried to do a expression like: > > //element(*,nt:file)[ jcr:contains(@prop:group, '* ! > 9ef90c86\-734a\-414e\-84c3\-64dc6452864c') ] > > in a hope to get all nodes with that property with different values that > 9ef90c86\-734a\-414e\-84c3\-64dc6452864c. > In the http://lucene.apache.org/core/2_9_4/queryparsersyntax.html > ... > The NOT operator excludes documents that contain the term after NOT. This > is > equivalent to a difference using sets. The symbol ! can be used in place of > the word NOT. > > To search for documents that contain "jakarta apache" but not "Apache > Lucene" use the query: > > "jakarta apache" NOT "Apache Lucene" > > Note: The NOT operator cannot be used with just one term. For example, the > following search will return no results: > > NOT "jakarta apache" > ... > > that's why I started the terms with a "*" term, don't know the side > effects... > > Any help will be appreciated, > Helio. > > > > -- > View this message in context: > http://jackrabbit.510166.n4.nabble.com/Searching-by-exclusions-tp4659556.html > Sent from the Jackrabbit - Users mailing list archive at Nabble.com. > --e89a8ff1c99e6d19f904e6c06bb1--