phrases containing escaped quotes

2007-05-15 Thread Martin Kobele
Hi, I tried to parse the following phrase: "foo \"bar\"" I get the following exception: org.apache.lucene.queryParser.ParseException: Lexical error at line 1, column 18. Encountered: after : "\") " Am I mistaken that "foo \"bar\"" is a valid phrase? Thanks! Martin pgp6qEn6ntvUi.pgp Descript

Re: phrases containing escaped quotes

2007-05-15 Thread Michael Busch
Martin Kobele wrote: Hi, I tried to parse the following phrase: "foo \"bar\"" I get the following exception: org.apache.lucene.queryParser.ParseException: Lexical error at line 1, column 18. Encountered: after : "\") " Am I mistaken that "foo \"bar\"" is a valid phrase? Thanks! Martin

Re: phrases containing escaped quotes

2007-05-15 Thread Mark Miller
Works fine as long as you escape your query correctly -- in java code: String query = "\"foo \\\"bar\\\"\"" On 5/15/07, Martin Kobele <[EMAIL PROTECTED]> wrote: Hi, I tried to parse the following phrase: "foo \"bar\"" I get the following exception: org.apache.lucene.queryParser.ParseException

Re: phrases containing escaped quotes

2007-05-15 Thread Martin Kobele
thank you! I was indeed using lucene 2.0 and it works very nicely with 2.1 thanks! Martin On Tuesday 15 May 2007 09:59:42 Michael Busch wrote: > Martin Kobele wrote: > > Hi, > > > > I tried to parse the following phrase: "foo \"bar\"" > > I get the following exception: > > org.apache.lucene.query