Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 30074 invoked from network); 25 Oct 2005 13:27:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Oct 2005 13:27:22 -0000 Received: (qmail 77626 invoked by uid 500); 25 Oct 2005 13:27:06 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 77604 invoked by uid 500); 25 Oct 2005 13:27:06 -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 77592 invoked by uid 99); 25 Oct 2005 13:27:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2005 06:27:06 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.12.10.212] (HELO web26001.mail.ukl.yahoo.com) (217.12.10.212) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 25 Oct 2005 06:27:04 -0700 Received: (qmail 52127 invoked by uid 60001); 25 Oct 2005 13:26:43 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.uk; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yWtkpxiSaMfVVYXGEMNnbKw27vF86kVbheTwBk3I4pu44e1uU2RtGL81GZCvXcb8dbO6AODU1uKOHHS4fBq6lI9KIOXBmpQucJlwzBxxATSTyes7/HfZoJS9WLEYC9/Vt4euzEDm16UDr4gJ2yrIexYm7taMUFvWDiWdnkmDlWo= ; Message-ID: <20051025132643.52125.qmail@web26001.mail.ukl.yahoo.com> Received: from [193.36.230.96] by web26001.mail.ukl.yahoo.com via HTTP; Tue, 25 Oct 2005 14:26:42 BST Date: Tue, 25 Oct 2005 14:26:42 +0100 (BST) From: mark harwood Subject: Re: Funny results with Fuzzy To: java-user@lucene.apache.org In-Reply-To: <435E30F1.3000504@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N It comes down to your choice of analyzer. Don't forget your "all" field is broken down into discreet terms by your choice of analyzer. Most often, you will want to use the same analyzer at query-time with the query parser to make sure the user's input matches the stored document terms. If you get it wrong (say using an analyzer that doesn't lower-case) you'll find nothing: Kylie != kylie If you aren't using a query parser and manually constructing FuzzyQuery objects programmatically the same logic applies (psueodocode): new FuzzyQuery(new Term("Kylie")) != "kylie" Hope this helps. ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org