Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 90934 invoked from network); 9 May 2005 18:28:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 May 2005 18:28:24 -0000 Received: (qmail 65550 invoked by uid 500); 9 May 2005 18:31:20 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 65454 invoked by uid 500); 9 May 2005 18:31:18 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 65351 invoked by uid 99); 9 May 2005 18:31:15 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_60_70,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mail.crcpress.com (HELO flexbe01.crcpress.com) (65.244.170.27) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 09 May 2005 11:31:15 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C554C4.CFBACDD0" X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Subject: QueryParser and Special Characters Date: Mon, 9 May 2005 14:27:52 -0400 Message-ID: <78A2AFE317F5AD48B823BE740D4A815224072C@flexbe01.crcpress.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: QueryParser and Special Characters Thread-Index: AcVUxM+VcQCL/T/ERM+3Ytv4s8+OCQ== From: "Kipping, Peter" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C554C4.CFBACDD0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable The documentation tells us to escape special characters by using the \ Example: \(1\+1\) However if we put this in a string String query =3D "\(1\+1\)"; Then the java compiler throws an Invalid Escape Sequence error. QueryParser doesn't seem to recognize the double backslash. Is there a workaround for this? Thanks, Peter ------_=_NextPart_001_01C554C4.CFBACDD0--