lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shashi Kant <sk...@sloan.mit.edu>
Subject Re: CANNOT use a * or ? symbol as the first character of a search.
Date Mon, 28 Dec 2009 08:48:57 GMT
You can enable that by

QueryParser.setAllowLeadingWildcard( true )


On Mon, Dec 28, 2009 at 2:46 AM, liujb <liujb@ufida.com.cn> wrote:
>
> oh,my god,
>
> Query Parser Syntax
>
> CANNOT use a * or ? symbol as the first character of a search.
>
> that's mean I can't wrinte a search string like '*test'. this will be cause a great restriction
to use lucence.
> but ,that's a really a important search scene.
>
> can you give me some advice on this problem.
>
> tks.
>
>
> owind.

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


Mime
View raw message