From java-dev-return-26704-apmail-lucene-java-dev-archive=lucene.apache.org@lucene.apache.org Thu Aug 07 15:36:09 2008 Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 5218 invoked from network); 7 Aug 2008 15:36:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Aug 2008 15:36:08 -0000 Received: (qmail 26418 invoked by uid 500); 7 Aug 2008 15:36:04 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 26386 invoked by uid 500); 7 Aug 2008 15:36:04 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 26369 invoked by uid 99); 7 Aug 2008 15:36:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2008 08:36:04 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2008 15:35:16 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 64FB7234C191 for ; Thu, 7 Aug 2008 08:35:44 -0700 (PDT) Message-ID: <2018246358.1218123344412.JavaMail.jira@brutus> Date: Thu, 7 Aug 2008 08:35:44 -0700 (PDT) From: "Yonik Seeley (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Resolved: (LUCENE-1352) trailing escaped backslashes in quoted queries cause parse error In-Reply-To: <1816673061.1218119624139.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-1352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yonik Seeley resolved LUCENE-1352. ---------------------------------- Resolution: Duplicate Resolving as a duplicate of LUCENE-1189 > trailing escaped backslashes in quoted queries cause parse error > ---------------------------------------------------------------- > > Key: LUCENE-1352 > URL: https://issues.apache.org/jira/browse/LUCENE-1352 > Project: Lucene - Java > Issue Type: Bug > Components: QueryParser > Affects Versions: 2.3.2 > Environment: Ubuntu 7.04, Sun JVM 1.5.0_1 > Reporter: Michael Dodsworth > > {noformat} > The QueryParser fails to parse queries that contain escaped backslashes followed > by a closing double-quote, then an opening double-quote (as part of another term). > For example, the query: > tagOrig:"testing\\" title:"titleTest" > will fail with the exception: > org.apache.lucene.queryParser.ParseException: Cannot parse 'tagOrig:"testing\\" title:"titleTest"': Lexical error at line 1, column 38. Encountered: after : "" > at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:155) > at org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:79) > After digging around, I found that 'QueryParserTokenManager:jjMoveNfa_3' is > generating - 'testing\\\" title:' as the token following the opening quote. It should > be generating 'testing\\'; it appears to see the first double-quote as being escaped > by the preceding slashes. > {noformat} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org