Skip to content

Apache Lucene open-source search software

Resolved bug LUCENE-862 reported by Antony Bowesman

Mark Harwood2333dd080b3b
diff --git a/contrib/queries/src/java/org/apache/lucene/search/BoostingQuery.java b/contrib/queries/src/java/org/apache/lucene/search/BoostingQuery.java
index 939873217b6..f5496572067 100644
--- a/contrib/queries/src/java/org/apache/lucene/search/BoostingQuery.java
+++ b/contrib/queries/src/java/org/apache/lucene/search/BoostingQuery.java
@@ -32,7 +32,7 @@ public class BoostingQuery extends Query {
this.context = (Query)context.clone(); // clone before boost
this.boost = boost;
- context.setBoost(0.0f); // ignore context-only matches
+ this.context.setBoost(0.0f); // ignore context-only matches
}
public Query rewrite(IndexReader reader) throws IOException {