Hi Max,

How did you escape it?  Did you try '\"foo bar'?  The same is true for 'foo
\(bar' for example, etc.

-- George Aroush

-----Original Message-----
From: Max Metral [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 21, 2007 12:30 AM
To: [email protected]
Subject: proper escape mechanism

If someone types "foo bar (including the unbalanced quote) in my search,
QueryParser.Parse throws an error.  It seems to do this even if I escape the
query.  What's the proper way to handle cleaning user input for a Lucene
query?

 

Thanks

--Max


Reply via email to