Re: QueryParser handling of backslash characters

2005-07-20 Thread Jeff Davis
ld be: assertEquals("192.168.0.15public", discardEscapeChar > ("192.168.0.15public")); > > I would also suggest to add the following: > String s="some.host.name\\dir+:+-!():^[]\{}~*?"; > assertEquals(s,discardEscapeChar(escape(s))); >

RE: QueryParser handling of backslash characters

2005-07-20 Thread Eyal
\public")); I would also suggest to add the following: String s="some.host.name\\dir+:+-!():^[]\{}~*?"; assertEquals(s,discardEscapeChar(escape(s))); Eyal > -Original Message- > From: Erik Hatcher [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 20, 2005 22:38 PM >

Re: QueryParser handling of backslash characters

2005-07-20 Thread Erik Hatcher
On Jul 19, 2005, at 11:19 AM, Jeff Davis wrote: Hi, I'm seeing some strange behavior in the way the QueryParser handles consecutive backslash characters. I know that backslash is the escape character in Lucene, and so I would expect "" to match fields that have two consecutive backslashes