You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by Max Metral <ma...@artsalliancelabs.com> on 2007/03/21 05:30:15 UTC

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


RE: LUCENENET-24

Posted by George Aroush <ge...@aroush.net>.
Thanks.  This issue is close now.

-- George Aroush 

-----Original Message-----
From: Digy [mailto:digydigy@gmail.com] 
Sent: Wednesday, March 21, 2007 1:47 PM
To: lucene-net-dev@incubator.apache.org
Subject: LUCENENET-24 

Hi,
I think jira LUCENENET-24 can be closed, because with the modification in
the QueryParser.cs made for LUCENENET-36 this error must have been handled.

DIGY


LUCENENET-24

Posted by Digy <di...@gmail.com>.
Hi,
I think jira LUCENENET-24 can be closed, because with the modification in
the QueryParser.cs made for LUCENENET-36 this error must have been handled.

DIGY


RE: proper escape mechanism

Posted by George Aroush <ge...@aroush.net>.
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