You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by ya...@bloglines.com on 2004/07/08 00:24:57 UTC

PhraseQuery with Wildcards?

Hi,

Is there any way to do a PhraseQuery with Wildcards?

I'd like to
search for:
  MyField:"foo bar*"

I thought I could cobble something together
using PhraseQuery and Wildcards but I couldn't get this functionality to work
due to my lack of experience with Lucene.

Is there a way to do this with
Lucene?

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Re: PhraseQuery with Wildcards?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Jul 7, 2004, at 6:24 PM, yahootintin.1247688@bloglines.com wrote:
> Hi,
>
> Is there any way to do a PhraseQuery with Wildcards?

No.

This very question came up a few days ago.  Look at PhrasePrefixQuery - 
although this will be a bit of effort to expand the terms matching the 
wildcarded term.

>
> I'd like to
> search for:
>   MyField:"foo bar*"
>
> I thought I could cobble something together
> using PhraseQuery and Wildcards but I couldn't get this functionality 
> to work
> due to my lack of experience with Lucene.
>
> Is there a way to do this with
> Lucene?
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org