Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 76306 invoked from network); 18 Mar 2008 21:49:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Mar 2008 21:49:11 -0000 Received: (qmail 67804 invoked by uid 500); 18 Mar 2008 21:48:52 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 67768 invoked by uid 500); 18 Mar 2008 21:48:52 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 67738 invoked by uid 99); 18 Mar 2008 21:48:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 14:48:52 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of spencertickner@gmail.com designates 216.239.58.189 as permitted sender) Received: from [216.239.58.189] (HELO gv-out-0910.google.com) (216.239.58.189) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Mar 2008 21:48:14 +0000 Received: by gv-out-0910.google.com with SMTP id r4so92887gve.23 for ; Tue, 18 Mar 2008 14:48:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ij3ZF8444i8oNY1zcbmvgVsfnaclBU/zcHcwYhrFJkI=; b=Y6zQ9YJ/LR3Oh+vhxzSS09Y8hWKzriDQQG9FN1IgeHrV51ZjMrBY21xfvw44IfVlw0VOt903yydrUaHtknUgaDAJ1b4hVqaugdD4ACfGLkTh7tMHBTqsv1M0rVhtWSC6yeoTnz4sAN4CaDdGZJbzediED54u/GEfzCNYI79z4SI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ApIXvoUaZtFGcdoljS3Jy4gAjFpzH+BHsCFLy3QgHddYdTQyPIXCgNWR9YoGaWBIWdAnJUTa2ekkTHTUpkAwzqxmp0uiDPww3gs+AFyW8b2ks+8hXtRm1aoQJMeQr7w21GeT7zpU9+DQPJx/TtckrkVSSCLWvDujA10ybUljaQk= Received: by 10.78.166.1 with SMTP id o1mr3628552hue.74.1205876903870; Tue, 18 Mar 2008 14:48:23 -0700 (PDT) Received: by 10.78.184.15 with HTTP; Tue, 18 Mar 2008 14:48:23 -0700 (PDT) Message-ID: <2d72c9c50803181448j296fa848l93cd5d30ec0d14a@mail.gmail.com> Date: Tue, 18 Mar 2008 14:48:23 -0700 From: "Spencer Tickner" To: java-user@lucene.apache.org Subject: Re: Contrib Highlighter and Phrase search In-Reply-To: <47E02B1C.1010007@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2d72c9c50803181327k508c23b1w8be68f850a719914@mail.gmail.com> <47E02B1C.1010007@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Thanks, I'll give that a try. Cheers, Spencer On Tue, Mar 18, 2008 at 1:50 PM, Mark Miller wrote: > The contrib Highlighter is not position sensitive. You can try out the > patch I have been working here if you are interested: > https://issues.apache.org/jira/browse/LUCENE-794 > > > > Spencer Tickner wrote: > > Hi List, > > > > Thanks in advance for any help. I'm working with the contrib > > highlighting class and am having issues when doing searches with a > > phrase. I've been able to duplicate this behaviour in the > > HighlighterTest class. > > > > When calling the testGetBestFragmentsPhrase() method I get the correct: > > > > John Kennedy has been shot > > > > However when I add "John" to the text so it reads: > > > > "John Kennedy has been John shot" > > > > I get: > > > > John Kennedy has beenJohn shot > > > > It makes sense to me that John should not be highlighted. Has anyone > > else run into this problem? Anyone have a fix? > > > > Cheers, > > > > Spencer > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org