Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 18083 invoked from network); 11 Oct 2005 13:32:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2005 13:32:45 -0000 Received: (qmail 37479 invoked by uid 500); 11 Oct 2005 13:32:34 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 37421 invoked by uid 500); 11 Oct 2005 13:32:34 -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 37388 invoked by uid 99); 11 Oct 2005 13:32:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2005 06:32:34 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 205.152.59.72 is neither permitted nor denied by domain of rwatkins@foo-bar.org) Received: from [205.152.59.72] (HELO imf24aec.mail.bellsouth.net) (205.152.59.72) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Oct 2005 06:32:35 -0700 Received: from ibm71aec.bellsouth.net ([68.209.119.157]) by imf24aec.mail.bellsouth.net with ESMTP id <20051011133211.JPES25370.imf24aec.mail.bellsouth.net@ibm71aec.bellsouth.net> for ; Tue, 11 Oct 2005 09:32:11 -0400 Received: from jimwormold ([68.209.119.157]) by ibm71aec.bellsouth.net with ESMTP id <20051011133211.NJDY11968.ibm71aec.bellsouth.net@jimwormold> for ; Tue, 11 Oct 2005 09:32:11 -0400 Date: Tue, 11 Oct 2005 09:32:26 -0400 (EDT) From: Robert Watkins To: java-user@lucene.apache.org Subject: wildcards within a phrase query Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I've been trying to figure out the best way to support queries of the ilk: "going to he* in a hand-basket" such that it's almost a PhraseQuery, except that the third term (in this case) is a PrefixQuery. The only idea that comes to mind is to try to combine a PhraseQuery and a PrefixQuery (or, in other situations, a WildcardQuery) using relative positional parameters. The idea being that one would combine a PhraseQuery for: "going to [gap] in a hand-basket" with a PrefixQuery for: "he" such that the position of the Term used in the PrefixQuery fits into the slot left by the [gap] of the PhraseQuery. Does that sound like I'm on the right track? -- Robert -------------------- Robert Watkins rwatkins@foo-bar.org -------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org