Skip to content

Apache Lucene open-source search software

SOLR-4111: test fix for SpellCheckCollatorTest#testContextSensitiveCollate

James Dyer3bb8a5e877a5
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 71797aeef5a..be074ccfdc1 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -279,6 +279,10 @@ Other Changes
* SOLR-1916: DIH to not use Lucene-forbidden Java APIs
(default encoding, locale, etc.) (James Dyer, Robert Muir)
+* SOLR-4111: SpellCheckCollatorTest#testContextSensitiveCollate to test against
+ both DirectSolrSpellChecker & IndexBasedSpellChecker
+ (Tomás Fernández Löbbe via James Dyer)
+
================== 4.0.0 ==================
Versions of Major Components
diff --git a/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java b/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java
index ac7b19efa56..aad834bc58b 100644
--- a/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java
+++ b/solr/core/src/test/org/apache/solr/spelling/SpellCheckCollatorTest.java
@@ -376,7 +376,7 @@ public class SpellCheckCollatorTest extends SolrTestCaseJ4 {
public void testContextSensitiveCollate() throws Exception {
// DirectSolrSpellChecker IndexBasedSpellChecker
String[] dictionary = {"direct", "default_teststop" };
- for(int i=0 ; i<1 ; i++) {
+ for(int i=0 ; i<=1 ; i++) {
assertQ(
req(
"q", "teststop:(flew AND form AND heathrow)",