Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 95191 invoked from network); 27 Jun 2007 13:29:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Jun 2007 13:29:42 -0000 Received: (qmail 32696 invoked by uid 500); 27 Jun 2007 13:29:44 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 32508 invoked by uid 500); 27 Jun 2007 13:29:44 -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 32499 invoked by uid 99); 27 Jun 2007 13:29:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2007 06:29:44 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2007 06:29:40 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1I3XaB-0007MI-Lm for users@jackrabbit.apache.org; Wed, 27 Jun 2007 06:29:19 -0700 Message-ID: <11324465.post@talk.nabble.com> Date: Wed, 27 Jun 2007 06:29:19 -0700 (PDT) From: shepy To: users@jackrabbit.apache.org Subject: querying indexed files MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: vladoseprak@yahoo.com X-Virus-Checked: Checked by ClamAV on apache.org Hello, I have imported several files into JR repo and now I'm trying to query the file nodes for specific content. One file is plain *.txt file and mime type is set to text/plain. I'm trying with following query: //element(*,nt:file)//*[jcr:contains(.,'text inside file')] or //element(*,nt:file)//*[jcr:contains(@jcr:data,'text inside file')] but nothing no node is returned. When i execute following query //element(*,nt:file)//*[jcr:contains(@jcr:mimeType,'text/plain')] one node is returned (txt file node). I have read that you can turn on indexing for various mime types. But i think that indexing of text/plain type is done automatically. Or am I wrong? Thanks for the reply. -- View this message in context: http://www.nabble.com/querying-indexed-files-tf3988364.html#a11324465 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.