Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 15380 invoked from network); 24 May 2006 14:51:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 May 2006 14:51:27 -0000 Received: (qmail 47225 invoked by uid 500); 24 May 2006 14:51:26 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 47216 invoked by uid 500); 24 May 2006 14:51:26 -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 47207 invoked by uid 99); 24 May 2006 14:51:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 07:51:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [81.80.90.131] (HELO smtp2.jouve.fr) (81.80.90.131) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 May 2006 07:51:25 -0700 Message-ID: <447472D5.10001@jouve.fr> Date: Wed, 24 May 2006 16:51:01 +0200 From: Alan Menant User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Searching problem References: <20060524122651.52274.qmail@web26507.mail.ukl.yahoo.com> <447453F8.70808@jouve.fr> <44746AC6.7030009@gmx.net> In-Reply-To: <44746AC6.7030009@gmx.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Marcel, I configured the text filters but no changes. Thanks. Marcel Reutegger a �crit : > did you configure the text filters to extract content from binary data? > > See: > http://svn.apache.org/repos/asf/jackrabbit/trunk/textfilters/README.txt > > regards > marcel > > Alan Menant wrote: >> Thank you Felix for your tip, but my repository was well configured, >> like this example file. >> >> The folder is well indeed because when I dump it I got the following >> result : >> >> test >> /test/jcr:created=2006-05-24T11:02:43.350+02:00 >> /test/jcr:primaryType=nt:folder >> /test/tata.txt >> /test/tata.txt/jcr:created=2006-05-24T11:02:43.365+02:00 >> /test/tata.txt/jcr:primaryType=nt:file >> /test/tata.txt/jcr:content >> /test/tata.txt/jcr:content/jcr:encoding= >> /test/tata.txt/jcr:content/jcr:data= >> /test/tata.txt/jcr:content/jcr:primaryType=nt:resource >> /test/tata.txt/jcr:content/jcr:mimeType=text/plain >> /test/tata.txt/jcr:content/jcr:uuid=556b31b2-03cc-4b16-b183-9cda1fcedbbb >> /test/tata.txt/jcr:content/jcr:lastModified=2006-05-23T16:03:50.630+02:00 >> >> /test/toto.txt >> /test/toto.txt/jcr:created=2006-05-24T11:02:43.365+02:00 >> /test/toto.txt/jcr:primaryType=nt:file >> /test/toto.txt/jcr:content >> /test/toto.txt/jcr:content/jcr:encoding= >> /test/toto.txt/jcr:content/jcr:data= >> /test/toto.txt/jcr:content/jcr:primaryType=nt:resource >> /test/toto.txt/jcr:content/jcr:mimeType=text/plain >> /test/toto.txt/jcr:content/jcr:uuid=d579c973-7a02-47c9-a2bc-3fa098bdeb2f >> /test/toto.txt/jcr:content/jcr:lastModified=2006-05-23T15:50:10.089+02:00 >> >> >> >> That's the searching who's not working. >> >> >> >> Felix Satyaputra a �crit : >>> Hi Alan, >>> >>> Have you tried with a repository configured with >>> SearchIndex? >>> >>> If my memory serves me right, you need to configure a >>> SearchIndex in your repository before you can run a >>> query against it. >>> To configure SearchIndex look at sample config in >>> http://jackrabbit.apache.org/doc/config.html where >>> SearchIndex is configured. >>> >>> Regards, >>> >>> Felix >>> >>> >>> --- Alan Menant wrote: >>> >>> >>>> I tried this example : >>>> >>> http://svn.apache.org/repos/asf/jackrabbit/trunk/contrib/examples/src/java/org/apache/jackrabbit/examples/FSImport.java >>> >>> >>>> and it looks like to be working fine for indexing >>>> folders and files. My folder contains .txt and .pdf files. >>>> >>>> >>>> The second step is to make a search on this >>>> folder... >>>> I wrote this : >>>> >>>> // Recherche >>>> Workspace workspace = >>>> session.getWorkspace(); >>>> QueryManager queryManager = >>>> workspace.getQueryManager(); >>>> >>>> // Requ�te Xpath >>>> Query query = >>>> >>> queryManager.createQuery("//*[jcr:contains(.,'test')]", >>> >>>> Query.XPATH); >>>> QueryResult result = query.execute(); >>>> NodeIterator iter = result.getNodes(); >>>> System.out.println(iter.getSize()+ " >>>> r�sultats"); >>>> while(iter.hasNext()) >>>> { >>>> Node noeud = (Node)iter.next(); >>>> >>>> >>> System.out.println(noeud.getProperty("jcr:data").getString()); >>> >>>> } >>>> >>>> This mean "Please give me all results that contains >>>> the word 'test'" (if I made no mistakes). >>>> But I have no results at all. >>>> >>>> I think I didn't stand everything in jackrabbit, can >>>> anyone help me ? >>>> >>>> Thanks. >>>> >>>> >>> >>> >>> >>> ___________________________________________________________ >>> Try the all-new Yahoo! Mail. "The New Version is radically easier to >>> use" � The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html >>> >>> >> >> >