Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 89499 invoked from network); 28 Mar 2006 07:14:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Mar 2006 07:14:24 -0000 Received: (qmail 90044 invoked by uid 500); 28 Mar 2006 07:14:22 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 89924 invoked by uid 500); 28 Mar 2006 07:14:21 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 89915 invoked by uid 99); 28 Mar 2006 07:14:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Mar 2006 23:14:21 -0800 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DATE_IN_PAST_12_24,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of marcel.reutegger@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 27 Mar 2006 23:14:20 -0800 Received: (qmail invoked by alias); 28 Mar 2006 07:13:58 -0000 Received: from bsl-rtr.day.com (EHLO [10.0.0.68]) [212.249.34.130] by mail.gmx.net (mp010) with SMTP; 28 Mar 2006 09:13:58 +0200 X-Authenticated: #894343 Message-ID: <442814B3.2010902@gmx.net> Date: Mon, 27 Mar 2006 18:37:07 +0200 From: Marcel Reutegger User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: dev@jackrabbit.apache.org Subject: Re: No hits returned when searching .txt file References: <3609159.post@talk.nabble.com> <4427E7CB.1010208@gmx.net> <3611591.post@talk.nabble.com> In-Reply-To: <3611591.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N thomasg wrote: > Thanks for your advice. I tried creating my text file using notepad and > choosing UTF-8 as the Encoding in the save dialogue. I added this to my > code: > > resourceNode.setProperty("jcr:encoding", "UTF-8"); //Also tried "UTF8" > > Unfortunately my query still returns no hits. Would you expect this to work > or can you please suggest a better combination of encodings and encoding > string to try. This is expected to work and it also does with my little test case I've just written. Could you please check if the org.apache.jackrabbit.core.query.lucene.TextPlainTextFilter is part of the list of text filter classes in your configuration? regards marcel