lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Aroush" <geo...@aroush.net>
Subject RE: proper escape mechanism
Date Wed, 28 Mar 2007 02:48:11 GMT
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:max@artsalliancelabs.com] 
Sent: Wednesday, March 21, 2007 12:30 AM
To: lucene-net-dev@incubator.apache.org
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



Mime
View raw message