Re: Better parsing of Queries

2007-04-05 Thread Chris Hostetter
ts of iterative "fixing" of the query string. : Date: Wed, 4 Apr 2007 21:42:12 +0100 : From: Simon Wistow <[EMAIL PROTECTED]> : Reply-To: java-user@lucene.apache.org : To: Lucene : Subject: Better parsing of Queries : : I'm looking for some advice on dealing with malformed quer

Re: Better parsing of Queries

2007-04-04 Thread Erick Erickson
About all you can do is roll your own. I suspect a decent regular expression would work, or you could let Lucene escape the query and then re-replace all \: with : Erick On 4/4/07, Simon Wistow <[EMAIL PROTECTED]> wrote: I'm looking for some advice on dealing with malformed queries. If a user

Better parsing of Queries

2007-04-04 Thread Simon Wistow
I'm looking for some advice on dealing with malformed queries. If a user searches for "yow!" then I get an exception from the query parser. I can get round this by using QueryParser.escape(query) first but then that prevents them from searching using other bits of the the query syntax such as "