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 373AF1998C for ; Wed, 30 Mar 2016 21:27:27 +0000 (UTC) Received: (qmail 23155 invoked by uid 500); 30 Mar 2016 21:27:25 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 23085 invoked by uid 500); 30 Mar 2016 21:27:25 -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 23068 invoked by uid 99); 30 Mar 2016 21:27:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2016 21:27:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 726FE2C14FB for ; Wed, 30 Mar 2016 21:27:25 +0000 (UTC) Date: Wed, 30 Mar 2016 21:27:25 +0000 (UTC) From: =?utf-8?Q?Jan_H=C3=B8ydahl_=28JIRA=29?= To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-8812) ExtendedDismaxQParser (edismax) ignores Boolean OR when q.op=AND MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-8812?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15218= 894#comment-15218894 ]=20 Jan H=C3=B8ydahl commented on SOLR-8812: ----------------------------------- Perhaps, after reverting, we could spend some effort adding better test cov= erage to edismax, to prevent similar regressions in the future. Then also add a bunch more tests for SOLR-2649, defining wanted behavior fo= r all kind of corner cases. > ExtendedDismaxQParser (edismax) ignores Boolean OR when q.op=3DAND > ---------------------------------------------------------------- > > Key: SOLR-8812 > URL: https://issues.apache.org/jira/browse/SOLR-8812 > Project: Solr > Issue Type: Bug > Components: query parsers > Affects Versions: 5.5 > Reporter: Ryan Steinberg > Assignee: Erick Erickson > Priority: Blocker > Fix For: 6.0, 5.5.1 > > Attachments: SOLR-8812.patch > > > The edismax parser ignores Boolean OR in queries when q.op=3DAND. This be= havior is new to Solr 5.5.0 and an unexpected major change. > Example: > "q": "id:12345 OR zzzzzzzzzz", > "defType": "edismax", > "q.op": "AND", > where "12345" is a known document ID and "zzzzzzzzzz" is a string NOT pre= sent in my data > Version 5.5.0 produces zero results: > "rawquerystring": "id:12345 OR zzzzzzzzzz", > "querystring": "id:12345 OR zzzzzzzzzz", > "parsedquery": "(+((id:12345 DisjunctionMaxQuery((text:zzzzzzzzzz)))~= 2))/no_coord", > "parsedquery_toString": "+((id:12345 (text:zzzzzzzzzz))~2)", > "explain": {}, > "QParser": "ExtendedDismaxQParser" > Version 5.4.0 produces one result as expected > "rawquerystring": "id:12345 OR zzzzzzzzzz", > "querystring": "id:12345 OR zzzzzzzzzz", > "parsedquery": "(+(id:12345 DisjunctionMaxQuery((text:zzzzzzzzzz))))/= no_coord", > "parsedquery_toString": "+(id:12345 (text:zzzzzzzzzz))" > "explain": {}, > "QParser": "ExtendedDismaxQParser" -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org