Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 49408 invoked from network); 17 Feb 2005 09:08:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Feb 2005 09:08:57 -0000 Received: (qmail 88143 invoked by uid 500); 17 Feb 2005 09:08:56 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 87280 invoked by uid 500); 17 Feb 2005 09:08:53 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 87266 invoked by uid 99); 17 Feb 2005 09:08:53 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.126.185) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 17 Feb 2005 01:08:51 -0800 Received: from [212.227.126.160] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1D1heT-0004Pn-00 for lucene-user@jakarta.apache.org; Thu, 17 Feb 2005 10:08:49 +0100 Received: from [82.135.13.186] (helo=voodoo.federation.net) by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128) (Exim 3.35 #1) id 1D1heT-0000Xz-00 for lucene-user@jakarta.apache.org; Thu, 17 Feb 2005 10:08:49 +0100 From: Daniel Naber To: "Lucene Users List" Subject: Re: Using the highlighter from the sandbox with a prefix query. Date: Thu, 17 Feb 2005 10:08:48 +0100 User-Agent: KMail/1.7.1 References: <1108625858.12974.3.camel@mxmail.log1.net> In-Reply-To: <1108625858.12974.3.camel@mxmail.log1.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200502171008.48160.daniel.naber@t-online.de> X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:94b5a5949d2eb00693e70b0c89be5163 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Thursday 17 February 2005 08:37, lucuser4851 wrote: > =A0We have been using the highlighter from the lucene sandbox, which works > very nicely most of the time. However when we try and use it with a > prefix query (which is what you get having parsed a wild-card query), it > doesn't return any highlighted sections. Has anyone else experienced > this problem, or found a way around it? You need to call rewrite() on the query before you pass it to the highlight= er. Regards Daniel --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org