Re: Avoiding ParseExceptions

2006-06-06 Thread Chris Nokleberg
On Tue, 06 Jun 2006 14:57:06 -0700, Chris Hostetter wrote: > I took an approach similar to that, by escaping all of the "special' > characters except '+', '-', and '"', and then stripping out all quotes if > there was a non even amount ... this gave me a simplified version of the > Lucene syntax th

Avoiding ParseExceptions

2006-06-06 Thread Chris Nokleberg
Hi all, I am using the QueryParser with a StandardAnalyzer. I would like to avoid or auto-correct anything that would lead to a ParseException. For example, I don't think you can get a parse exception from Google--even if you omit a closing quote it looks like it just closes it for you (please cor