You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by us...@apache.org on 2017/05/07 11:25:52 UTC
lucene-solr:branch_6x: LUCENE-5365,
LUCENE-7818: Fix incorrect condition in queryparser's
QueryNodeOperation#logicalAnd()
Repository: lucene-solr
Updated Branches:
refs/heads/branch_6x 56a5ba03a -> a46b5fc1b
LUCENE-5365, LUCENE-7818: Fix incorrect condition in queryparser's QueryNodeOperation#logicalAnd()
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/a46b5fc1
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/a46b5fc1
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/a46b5fc1
Branch: refs/heads/branch_6x
Commit: a46b5fc1b6609b6b7723f328c6150c314e3c0d9c
Parents: 56a5ba0
Author: Uwe Schindler <us...@apache.org>
Authored: Sun May 7 13:24:21 2017 +0200
Committer: Uwe Schindler <us...@apache.org>
Committed: Sun May 7 13:25:39 2017 +0200
----------------------------------------------------------------------
lucene/CHANGES.txt | 6 +++++-
.../queryparser/flexible/core/util/QueryNodeOperation.java | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a46b5fc1/lucene/CHANGES.txt
----------------------------------------------------------------------
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 2a46b52..7e7c5ac 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -28,9 +28,13 @@ Bug Fixes
* LUCENE-7798: Add .equals and .hashCode to ToParentBlockJoinSortField
(Mikhail Khludnev)
-* LUCENE-7814: DateRangePrefixTree (in spatial-extras ) had edge-case bugs for
+* LUCENE-7814: DateRangePrefixTree (in spatial-extras) had edge-case bugs for
years >= 292,000,000. (David Smiley)
+* LUCENE-5365, LUCENE-7818: Fix incorrect condition in queryparser's
+ QueryNodeOperation#logicalAnd(). (Olivier Binda, Amrit Sarkar,
+ AppChecker via Uwe Schindler)
+
Improvements
* LUCENE-7782: OfflineSorter now passes the total number of items it
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/a46b5fc1/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/QueryNodeOperation.java
----------------------------------------------------------------------
diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/QueryNodeOperation.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/QueryNodeOperation.java
index 4280d1c..7d82510 100644
--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/QueryNodeOperation.java
+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/QueryNodeOperation.java
@@ -56,7 +56,7 @@ public final class QueryNodeOperation {
op = ANDOperation.BOTH;
else if (q1 instanceof AndQueryNode)
op = ANDOperation.Q1;
- else if (q1 instanceof AndQueryNode)
+ else if (q2 instanceof AndQueryNode)
op = ANDOperation.Q2;
else
op = ANDOperation.NONE;