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 590ADDB19 for ; Tue, 18 Sep 2012 00:47:10 +0000 (UTC) Received: (qmail 64083 invoked by uid 500); 18 Sep 2012 00:47:09 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 64029 invoked by uid 500); 18 Sep 2012 00:47:09 -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 64019 invoked by uid 99); 18 Sep 2012 00:47:09 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2012 00:47:09 +0000 Date: Tue, 18 Sep 2012 11:47:08 +1100 (NCT) From: "Jack Krupansky (JIRA)" To: dev@lucene.apache.org Message-ID: <972168544.90563.1347929229045.JavaMail.jiratomcat@arcas> In-Reply-To: <2146365186.61083.1347323767421.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (SOLR-3823) Parentheses in a boost query cause errors 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-3823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13457513#comment-13457513 ] Jack Krupansky commented on SOLR-3823: -------------------------------------- bq. ...this is how subqueries have always worked with QParsers Is there any wiki/Javadoc that documents this behavior? I would also note that both the dismax and edismax wiki pages for "bq" say: bq. A raw query string (in the SolrQuerySyntax) which is not right. We know it uses defType, but we clearly need the precise language as it is supposed to be (noting the comments by hossman.) See: http://wiki.apache.org/solr/DisMaxQParserPlugin#bq_.28Boost_Query.29 http://wiki.apache.org/solr/ExtendedDisMax#bq_.28Boost_Query.29 > Parentheses in a boost query cause errors > ----------------------------------------- > > Key: SOLR-3823 > URL: https://issues.apache.org/jira/browse/SOLR-3823 > Project: Solr > Issue Type: Bug > Components: query parsers > Affects Versions: 4.0-BETA > Environment: Mac, jdk 1.6, Chrome > Reporter: Mathos Marcer > Assignee: Hoss Man > Fix For: 4.0, 5.0 > > > When using a boost query (bq) that contains a parentheses (like this example from the Relevancy Cookbook section of the wiki): > {noformat} > ? defType = dismax > & q = foo bar > & bq = (*:* -xxx)^999 > {noformat} > You get the following error: > org.apache.lucene.queryparser.classic.ParseException: Cannot parse '-xxx)': Encountered " ")" ") "" at line 1, column 12. Was expecting one of: ... ... ... "+" ... "-" ... ... "(" ... "*" ... "^" ... ... ... ... ... ... ... "[" ... "{" ... ... -- 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