From users-return-4900-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Sep 11 14:32:28 2007 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 15434 invoked from network); 11 Sep 2007 14:32:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2007 14:32:27 -0000 Received: (qmail 46529 invoked by uid 500); 11 Sep 2007 14:32:20 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 46510 invoked by uid 500); 11 Sep 2007 14:32:20 -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 46501 invoked by uid 99); 11 Sep 2007 14:32:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 07:32:20 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Tue, 11 Sep 2007 14:32:17 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IV6mS-0000Aq-K3 for users@jackrabbit.apache.org; Tue, 11 Sep 2007 07:31:56 -0700 Message-ID: <12616029.post@talk.nabble.com> Date: Tue, 11 Sep 2007 07:31:56 -0700 (PDT) From: stefan81 To: users@jackrabbit.apache.org Subject: Re: Problem with fulltext search In-Reply-To: <46E6A3C2.5080809@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: stefan.schlappa@process-relations.com References: <12589528.post@talk.nabble.com> <46E6A3C2.5080809@gmx.net> X-Virus-Checked: Checked by ClamAV on apache.org Thank you, it works now. The problem seemed to result from the problems with the offic= e 2007 formats I mentioned in another thread. The problems occured when I created my rtf-file with word 2007. When I deleted it and created a now one with word pad the indexing worked fine. Marcel Reutegger wrote: >=20 > can you please enable debug messages for the class=20 > org.apache.jackrabbit.core.query.lucene.JackrabbitTextExtractor and re-ru= n > your=20 > test? >=20 > the log file will then contain debug messages about the text extraction > process. >=20 > regards > marcel >=20 > stefan81 wrote: >> Hi all, >>=20 >> although I have read many threads I cannot figure out why my fulltext >> search >> does not work. Here is my repository.xml: >>=20 >> >>=20 >>=20 >> >>=20 >> When I startup JBoss I cannot really see that the extractors are loaded. >> But >> if I add for example org.apache.jackrabbit.extractor.bla then I get an >> exception during startup. So I think the extractors are loaded. >>=20 >> In my repository on the filesystem I have configured "workspace.xml" lik= e >> repository.xml containing the same text filters. >>=20 >> I have a file "hello.rtf" containing just the word "hello". I load the >> file >> into the repository: >>=20 >> File file =3D new File("hello.rtf"); >>=20 >> MimeTable mt =3D MimeTable.getDefaultTable(); >> String mimeType =3D mt.getContentTypeFor(file.getName()); // this is >> application/rtf >>=20 >> Node fileNode =3D parentnode.addNode(file.getName(), "nt:file"); >> Node resNode =3D fileNode.addNode("jcr:content", "nt:resource"); >> resNode.setProperty("jcr:mimeType", mimeType); >> resNode.setProperty("jcr:encoding", ""); >> resNode.setProperty("jcr:data", new FileInputStream(file)); >>=20 >> Why doesn=C2=B4t the following query provide any results? >>=20 >> Query q =3D qm.createQuery("//*[jcr:contains(.,'hello')] ", Query.XPATH)= ; >>=20 >> Did I miss something? Has anybody help for me? >=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/Problem-with-fulltext-s= earch-tf4413382.html#a12616029 Sent from the Jackrabbit - Users mailing list archive at Nabble.com.