lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Miller" <markrmil...@gmail.com>
Subject Re: phrases containing escaped quotes
Date Tue, 15 May 2007 14:06:27 GMT
Works fine as long as you escape your query correctly -- in java code:

String query = "\"foo \\\"bar\\\"\""

On 5/15/07, Martin Kobele <martin.kobele@netsweeper.com> 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: <EOF> after : "\") "
>
> Am I mistaken that "foo \"bar\"" is a valid phrase?
>
> Thanks!
> Martin
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message