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 Mohsen Saboorian <mo...@gmail.com> on 2007/04/21 17:16:09 UTC

Leading and trailing wildcard together

Hi,
I've noticed that from Lucene 2.1 leading wildcard can be enabled using
QueryParser.setAllowLeadingWildcard(true), however I wasn't able to search
for *Foo* (while "?Foo*" and even "?*Foo*" works). Is it possible to have
leading and trailing star wildcard together?

Thanks.
-- 
View this message in context: http://www.nabble.com/Leading-and-trailing-wildcard-together-tf3623405.html#a10118038
Sent from the Lucene - Java Users mailing list archive at Nabble.com.


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


Re: Leading and trailing wildcard together

Posted by Doron Cohen <DO...@il.ibm.com>.
Daniel Naber <lu...@danielnaber.de> wrote on 21/04/2007 15:54:31:

> On Saturday 21 April 2007 17:16, Mohsen Saboorian wrote:
>
> > however I wasn't able to search
> > for *Foo* (while "?Foo*" and even "?*Foo*" works). Is it possible to
> > have leading and trailing star wildcard together?
>
> That's a bug in the 2.1 release which has been fixed in SVN trunk.
There's
> also a patch in the bug tracking system about that (sorry, I don't
> remember the number now).

That was LUCENE-813.

>
> Regards
>  Daniel
>
> --
> http://www.danielnaber.de


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


Re: Leading and trailing wildcard together

Posted by Daniel Naber <lu...@danielnaber.de>.
On Saturday 21 April 2007 17:16, Mohsen Saboorian wrote:

> however I wasn't able to search
> for *Foo* (while "?Foo*" and even "?*Foo*" works). Is it possible to
> have leading and trailing star wildcard together?

That's a bug in the 2.1 release which has been fixed in SVN trunk. There's 
also a patch in the bug tracking system about that (sorry, I don't 
remember the number now).

Regards
 Daniel

-- 
http://www.danielnaber.de

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