Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 56DD1D3DC for ; Wed, 28 Nov 2012 21:42:02 +0000 (UTC) Received: (qmail 41079 invoked by uid 500); 28 Nov 2012 21:42:00 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 41018 invoked by uid 500); 28 Nov 2012 21:42:00 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 40976 invoked by uid 99); 28 Nov 2012 21:42:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 21:42:00 +0000 Date: Wed, 28 Nov 2012 21:42:00 +0000 (UTC) From: "Yonik Seeley (JIRA)" To: dev@lucene.apache.org Message-ID: <517508866.35508.1354138920239.JavaMail.jiratomcat@arcas> In-Reply-To: <419233271.35273.1354135679270.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (SOLR-4121) balanced single quotes cause parse error in (new) standard QParser MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-4121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13505926#comment-13505926 ] Yonik Seeley commented on SOLR-4121: ------------------------------------ Committed quick fix that seems to work, and I see that Mark's commit tracker picked it up, yay! I'll leave this open for now, and get around to finishing things up (more tests) before 4.1 > balanced single quotes cause parse error in (new) standard QParser > ------------------------------------------------------------------ > > Key: SOLR-4121 > URL: https://issues.apache.org/jira/browse/SOLR-4121 > Project: Solr > Issue Type: Bug > Components: query parsers > Reporter: Hoss Man > Assignee: Yonik Seeley > Priority: Blocker > Fix For: 4.1 > > > The parser changes introduced in SOLR-4093 cause the standard parser to freak out anytime there are blanaced single quotes in a query string. > the expected behavior is that single quotes should not be considered special to the parser, and should be ignored and passed down to the appropriate field analyzers > Example of error... > http://localhost:8983/solr/select?q=%27zz+xx%27&debugQuery=true > {noformat} > Caused by: org.apache.solr.parser.ParseException: Encountered " "\'zz xx\' "" at line 1, column 0. > Was expecting one of: > ... > "+" ... > "-" ... > ... > "(" ... > "*" ... > ... > ... > ... > ... > ... > "[" ... > "{" ... > ... > ... > ... > "*" ... > > at org.apache.solr.parser.QueryParser.generateParseException(QueryParser.java:649) > at org.apache.solr.parser.QueryParser.jj_consume_token(QueryParser.java:531) > at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:216) > at org.apache.solr.parser.QueryParser.Query(QueryParser.java:107) > at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:96) > at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:159) > {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org