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 0D36F11A4A for ; Sun, 11 May 2014 06:13:16 +0000 (UTC) Received: (qmail 16609 invoked by uid 500); 10 May 2014 23:27:39 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 94608 invoked by uid 500); 10 May 2014 23:18:50 -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 36179 invoked by uid 99); 10 May 2014 22:58:41 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 May 2014 22:58:41 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 May 2014 14:20:35 +0000 Received: from joe.nabble.com ([192.168.236.139]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1Wilel-0005LU-Or for users@jackrabbit.apache.org; Fri, 09 May 2014 07:20:11 -0700 Date: Fri, 9 May 2014 07:20:11 -0700 (PDT) From: hsp To: users@jackrabbit.apache.org Message-ID: <1399645211723-4660830.post@n4.nabble.com> Subject: XPath Search with negate in contains MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi; Because of a node with '|' in it's name, I have to filter search in a way that only that node with '|' will not return. I did not find any option to negate a contains in XPath, I tried: jcr:contains(.,'NOT \|') -> returns nodes with NOT in index... jcr:contains(.,'- \|') -> returns none and some other combinations... Any help? Regards Helio. -- View this message in context: http://jackrabbit.510166.n4.nabble.com/XPath-Search-with-negate-in-contains-tp4660830.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.