Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 14934 invoked from network); 10 May 2008 10:33:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 May 2008 10:33:24 -0000 Received: (qmail 21516 invoked by uid 500); 10 May 2008 10:33:19 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 21475 invoked by uid 500); 10 May 2008 10:33:18 -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 21463 invoked by uid 99); 10 May 2008 10:33:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 May 2008 03:33:18 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.146.176.40] (HELO web26503.mail.ukl.yahoo.com) (217.146.176.40) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 10 May 2008 10:32:21 +0000 Received: (qmail 6506 invoked by uid 60001); 10 May 2008 10:32:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=JyVbJSFNIjB1aFCWQR1PEBJ6JiQBta5rm4pF8vgEwuY6T5FoImHP5dGxvT9pfCQCgQxdnsPiL/lUCcsL79SFC1hQmIW2ZZ3eRoqd7wYiZsF/u+maeu9NqddGUxVsnDKN58y0Z7fkHrDb8Is6CtcknF0KjZ784PtOaaflXHNHG6Y=; X-YMail-OSG: wBhVwkYVM1nuV5YOkYqBApGQQ_GDmjQxVx1_5c3IyAo96pGg56UoaLX1IkVPdgokdxW07ZqabgDzeltyKrUgtMMvs0wLgu5fWNBBv8ueQg34GL7TKHxyTvj2B10- Received: from [82.232.236.170] by web26503.mail.ukl.yahoo.com via HTTP; Sat, 10 May 2008 12:32:42 CEST Date: Sat, 10 May 2008 12:32:42 +0200 (CEST) From: legrand thomas Subject: Search for long titles - wildcard queries To: java-user@lucene.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2129271626-1210415562=:6426" Content-Transfer-Encoding: 8bit Message-ID: <742076.6426.qm@web26503.mail.ukl.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --0-2129271626-1210415562=:6426 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Dear all, I'm a recent Lucene user and I'm looking for the best way to perform searches over long titles (ad titles on a website). For example, if the following documents exist: - TITLE, "Fender telecaster" - TITLE, "Land rover defender" - TITLE, "I sale a wonderful fender stratocaster" When searching "fender", I'd like to get these three documents. I expect the same results with "fende*" or "*ender*" (I want to let the possibility to the final user to manually enter a "*" ). When searching "I sale a wonderful fender stratocaster", I'd like to get the third document (easy to guess :-). I think I cannot use the WildcardQuery because the term shouldn't start with "*" of "?". Should I use a QueryParser ? How can I do it ? It would be great if you could help me, Thanks in advance, Tom __________________________________________________ Do You Yahoo!? En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible contre les messages non sollicit�s http://mail.yahoo.fr Yahoo! Mail --0-2129271626-1210415562=:6426--