lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Lexical error when asterisk quantifier is first in query string
Date Fri, 30 Jun 2006 13:00:26 GMT

On Jun 30, 2006, at 8:29 AM, Björn Ekengren wrote:

> queryParser.ParseException: Lexical error at line 1, column 2.   
> Encountered:
> after : ""
> I get this when i enter a query with a asterisk (or questionmark)  
> first in
> the query ( "*cene" ).
> Is this a bug or am I doing something wrong ?

Wildcard characters are prohibited at the start of strings in  
QueryParser.  WildcardQuery itself supports it, but the parser  
prohibits it for general purpose performance reasons.

	Erik


---------------------------------------------------------------------
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