You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2020/10/19 17:19:16 UTC
[lucene-solr] branch branch_8x updated: LUCENE-9524: Fix test
failure.
This is an automated email from the ASF dual-hosted git repository.
jpountz pushed a commit to branch branch_8x
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/branch_8x by this push:
new fd41540 LUCENE-9524: Fix test failure.
fd41540 is described below
commit fd4154073ab64ac7a248dc6fa1d256fc9be71063
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Mon Oct 19 19:17:58 2020 +0200
LUCENE-9524: Fix test failure.
---
.../src/test/org/apache/lucene/search/spans/TestSpanExplanations.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanExplanations.java b/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanExplanations.java
index 966cde1..b16d0a2 100644
--- a/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanExplanations.java
+++ b/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanExplanations.java
@@ -193,7 +193,7 @@ public class TestSpanExplanations extends BaseExplanationTestCase {
IndexSearcher indexSearcher = newSearcher(reader);
SpanWeight spanWeight = query.createWeight(indexSearcher, ScoreMode.COMPLETE_NO_SCORES, 1f);
- final LeafReaderContext ctx = reader.leaves().get(0);
+ final LeafReaderContext ctx = indexSearcher.getIndexReader().leaves().get(0);
Explanation explanation = spanWeight.explain(ctx, 0);
assertEquals(0f, explanation.getValue());