Actually, [] denotes an inclusive range of Terms. Anyway, why not change the syntax if this is bad...?
Scott > -----Original Message----- > From: Brian Goetz [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, February 20, 2002 10:08 AM > To: Lucene Users List > Subject: Re: Queryparser croaking on "[" and "]" > > > This is because the query parser uses [] to denote ranges of numbers. > (I always thought this was a bad choice of syntax for exactly this > reason.) > > > On Wed, Feb 20, 2002 at 11:14:05AM -0000, Les Hughes wrote: > > Hi, > > > > I'm currently building a small app that allows searching of > Java sourcecode. > > The problem I'm getting is when parsing a query string that > contains an > > array specifier (ie. String[] or int[][]) the query parser > seem to croak > > with a > > > > Lexical error at line XX, column XX. Encountered: after : "[]" > > > > > > So what am I doing wrong / what should I write to fix this? > > > > > > Les > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> >