RE: Query.toString(0 does not escape special characters

2005-05-25 Thread Peter Gelderbloem
Yeah, That works Thanks Peter Gelderbloem -Original Message- From: Chris Lamprecht [mailto:[EMAIL PROTECTED] Sent: 24 May 2005 18:16 To: java-user@lucene.apache.org Subject: Re: Query.toString(0 does not escape special characters Hi Peter, See the method escape(String s) of QueryParser

Re: Query.toString(0 does not escape special characters

2005-05-24 Thread Chris Lamprecht
Hi Peter, See the method escape(String s) of QueryParser, it may do what you want. On 5/24/05, Peter Gelderbloem <[EMAIL PROTECTED]> wrote: > Hi, > I am building queries using the query api and when I use } in my fieldname > and then call toString on the query, QueryParser throws a ParseExceptio

Query.toString(0 does not escape special characters

2005-05-24 Thread Peter Gelderbloem
Hi, I am building queries using the query api and when I use } in my fieldname and then call toString on the query, QueryParser throws a ParseException when trying to parse it. How do I fix this? Regards Peter Gelderbloem - To