Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 850 invoked from network); 5 Jul 2004 11:16:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Jul 2004 11:16:18 -0000 Received: (qmail 39598 invoked by uid 500); 5 Jul 2004 11:16:10 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 39482 invoked by uid 500); 5 Jul 2004 11:16:07 -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 39464 invoked by uid 99); 5 Jul 2004 11:16:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [128.143.103.66] (HELO postfix.mail.ehatchersolutions.com) (128.143.103.66) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 05 Jul 2004 04:16:06 -0700 Received: from [127.0.0.1] (localhost [127.0.0.1]) by postfix.mail.ehatchersolutions.com (Postfix) with ESMTP id A61607BB8A2 for ; Mon, 5 Jul 2004 07:16:04 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v618) In-Reply-To: <40E91A0D.70705@imente.com> References: <40E91A0D.70705@imente.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Erik Hatcher Subject: Re: Using '*' wildcard in phrase searches Date: Mon, 5 Jul 2004 07:16:03 -0400 To: "Lucene Users List" X-Mailer: Apple Mail (2.618) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Jul 5, 2004, at 5:06 AM, Albert Vila wrote: > I wanna use the * in the middle of a phrase search like "java j2*". > Anyone knows how can i achieve that? This is not possible with QueryParser, currently. But through the API, you could (and it would take a little bit of code - see Lucene's test cases for more details) use a PhrasePrefixQuery to do this - it boils down to you manually expanding all the terms for j2*. Erik --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org