I encountered this issue before and was led to use SpanQueries for wildcards within phrases. Take a look at the SpanQuery family of classes. SpanQueries can give you the ability to specify a wildcarded term within a phrase since you can nest different SpanQueries within a SpanQuery. One of these is the SpanRegexQuery, which allows you to specify a regular expression that would serve as your wildcard term search within the phrase.
I ended up using a SpanNearQuery to represent the overall phrase nested with SpanRegexQueries for the wildcarded parts, and SpanTermQueries for all other non-wildcarded terms. Hope this helps, Gary -----Original Message----- From: Daniel Naber [mailto:[EMAIL PROTECTED] Sent: Monday, September 25, 2006 01:45 PM To: java-user@lucene.apache.org Subject: Re: wildcards in quoted phrases? On Monday 25 September 2006 22:20, Dan Armbrust wrote: > My hunch is that its not real easy, otherwise it would already have > been done... I think it shouldn't be difficult, but to expand the PrefixQuery, your QueryParser would need an IndexReader. Currently IndexReader/QueryParser don't depend on each other. Maybe this is the reason why it hasn't been done or why it hasn't been published. Regards Daniel -- http://www.danielnaber.de --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]