: QueryParser exception on escaped backslash preceding
) character
When I try to parse a query with an escaped backslash
character like this
(using Lucene 1.4.3):
-id:20677 +(addr:Street143 AND zip:\\)
the QueryParser thows an Exception:
Encountered EOF at line 1, column 289.
Was expecting one
When I try to parse a query with an escaped backslash character like this
(using Lucene 1.4.3):
-id:20677 +(addr:Street143 AND zip:\\)
the QueryParser thows an Exception:
Encountered EOF at line 1, column 289.
Was expecting one of: AND ... OR ...
\\ and your java app
is never seeing it.
: Date: Fri, 12 Aug 2005 07:30:19 -0700 (PDT)
: From: Matt Magoffin [EMAIL PROTECTED]
: Reply-To: java-user@lucene.apache.org
: To: java-user@lucene.apache.org
: Subject: QueryParser exception on escaped backslash preceding ) character
:
: When I try to parse
: To: java-user@lucene.apache.org
: Subject: QueryParser exception on escaped backslash preceding )
character
:
: When I try to parse a query with an escaped backslash character like
this
: (using Lucene 1.4.3):
:
: -id:20677 +(addr:Street143 AND zip:\\)
:
: the QueryParser thows an Exception
: Subject: Re: QueryParser exception on escaped backslash preceding )
: character
:
: The strings are not coming from Java literals, actually, so I didn't think
: that was the problem.
:
: Any other thoughts?
:
: -- m@
:
: I think you are encountering a double escape problem in java literals
)
: : From: Matt Magoffin [EMAIL PROTECTED]
: : Reply-To: java-user@lucene.apache.org
: : To: java-user@lucene.apache.org
: : Subject: Re: QueryParser exception on escaped backslash preceding )
: : character
: :
: : The strings are not coming from Java literals, actually, so I didn't
on escaped backslash preceding )
character
:
: When I try to parse a query with an escaped backslash character like
this
: (using Lucene 1.4.3):
:
: -id:20677 +(addr:Street143 AND zip:\\)
:
: the QueryParser thows an Exception:
:
: Encountered EOF at line 1, column 289
: Matt Magoffin [EMAIL PROTECTED]
: Reply-To: java-user@lucene.apache.org
: To: java-user@lucene.apache.org
: Subject: Re: QueryParser exception on escaped backslash preceding )
:character
:
: Sure, here's a test case with the bug and the workaround.
:
: -- m@
:
: can you provide