Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 80794 invoked from network); 7 Apr 2006 09:41:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Apr 2006 09:41:07 -0000 Received: (qmail 84858 invoked by uid 500); 7 Apr 2006 09:41:02 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 84811 invoked by uid 500); 7 Apr 2006 09:41:00 -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 84800 invoked by uid 99); 7 Apr 2006 09:41:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Apr 2006 02:41:00 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Apr 2006 02:40:58 -0700 Received: from localhost ([127.0.0.1] helo=talk.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1FRnSH-0006IF-5c for java-user@lucene.apache.org; Fri, 07 Apr 2006 02:40:37 -0700 Message-ID: <3800664.post@talk.nabble.com> Date: Fri, 7 Apr 2006 02:40:37 -0700 (PDT) From: Fisheye To: java-user@lucene.apache.org Subject: Re: highlighting - fuzzy search In-Reply-To: <4435A24F.3050808@nuix.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: dessan@gmx.ch X-Nabble-From: Fisheye References: <3743436.post@talk.nabble.com> <3743994.post@talk.nabble.com> <92100F41-174A-4DE6-8846-6D5CF410A54F@ehatchersolutions.com> <3746483.post@talk.nabble.com> <961080E5-25B5-47F2-BB39-A7D42FC537D0@ehatchersolutions.com> <44330B73.7030601@nuix.com.au> <20060405082117.12313.qmail@web26008.mail.ukl.yahoo.com> <44349CE9.6000603@nuix.com.au> <3779856.post@talk.nabble.com> <4435A24F.3050808@nuix.com.au> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N yes, this might be a way, but in my case it would not work: The probles is, that I have to return an exceprt (snippet) and the words to be highlighted as two separate strings. So now I use highlighter and getBestFragment to extract the excerpt, then I remove the inserted html tags and return the string to my application. In normal query mode I return the matching query string entered by the user. My application then does the highlighting and displays all I need. So if I do fuzzy search and want to go the same way as if I do normal search, I need the similar words generated from the Levenshtein algorithm. Another approach may be to extract the similar words automatically highlighted in the returned fragment by lucene, before I let remove the html tags... -- View this message in context: http://www.nabble.com/highlighting---fuzzy-search-t1392775.html#a3800664 Sent from the Lucene - Java Users forum at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org