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 5635B91AD for ; Thu, 10 May 2012 12:58:13 +0000 (UTC) Received: (qmail 8064 invoked by uid 500); 10 May 2012 12:58:11 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 7791 invoked by uid 500); 10 May 2012 12:58:11 -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 7625 invoked by uid 99); 10 May 2012 12:58:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 12:58:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2012 12:58:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 888F6140D3 for ; Thu, 10 May 2012 12:57:49 +0000 (UTC) Date: Thu, 10 May 2012 12:57:49 +0000 (UTC) From: =?utf-8?Q?Jan_H=C3=B8ydahl_=28JIRA=29?= To: dev@lucene.apache.org Message-ID: <1461622521.49089.1336654669560.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <191066033.3967.1334792680184.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-3377) eDismax: A fielded query wrapped by parens is not recognized MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-3377?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13272= 293#comment-13272293 ]=20 Jan H=C3=B8ydahl commented on SOLR-3377: ----------------------------------- I think we need better test coverage before this is ready. We should add a bunch of tests with queries involving parens, to verify tha= t they behave as expected. Both tests involving parens as intended grouping= for boolean precedence as well as parens not intended as boolean sugar but= as plain text pasted from somewhere: {noformat} q=3D(foo OR title:bar) AND (title:foo OR bar) q=3DMeeting at noon (room:Auditorium) {noformat} The first should obey the instructed boolean order, while the last should r= eturn docs with the literal token "room:Autirium" in any of the qf fields. The key goal of dismax is to be very robust so people can paste in all kind= of garbage, and get matches. So if the query parses as valid boolean logic= , that should be used. =20 > eDismax: A fielded query wrapped by parens is not recognized > ------------------------------------------------------------ > > Key: SOLR-3377 > URL: https://issues.apache.org/jira/browse/SOLR-3377 > Project: Solr > Issue Type: Bug > Components: query parsers > Affects Versions: 3.6 > Reporter: Jan H=C3=B8ydahl > Assignee: Bernd Fehling > Fix For: 4.0, 3.6.1 > > Attachments: SOLR-3377.patch, SOLR-3377.patch, SOLR-3377.patch, S= OLR-3377.patch > > > As reported by "bernd" on the user list, a query like this > {{q=3D(name:test)}} > will yield 0 hits in 3.6 while it worked in 3.5. It works without the par= ens. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a 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