Skip to content

Apache Lucene open-source search software

rename misspelled indexDictionnary method

Erik Hatcher2fe0a801893f
diff --git a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
index 9cf1042ed10..31f6472505d 100755
--- a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
+++ b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
@@ -263,11 +263,11 @@ public class SpellChecker {
/**
- * Index a Dictionnary
- * @param dict the dictionnary to index
+ * Index a Dictionary
+ * @param dict the dictionary to index
* @throws IOException
*/
- public void indexDictionnary (Dictionary dict) throws IOException {
+ public void indexDictionary (Dictionary dict) throws IOException {
IndexReader.unlock(spellindex);
IndexWriter writer=new IndexWriter(spellindex, new WhitespaceAnalyzer(), !IndexReader.indexExists(spellindex));
writer.setMergeFactor(300);
diff --git a/contrib/spellchecker/src/test/org/apache/lucene/search/spell/TestSpellChecker.java b/contrib/spellchecker/src/test/org/apache/lucene/search/spell/TestSpellChecker.java
index 0f5b3b75c1f..072b27ab194 100755
--- a/contrib/spellchecker/src/test/org/apache/lucene/search/spell/TestSpellChecker.java
+++ b/contrib/spellchecker/src/test/org/apache/lucene/search/spell/TestSpellChecker.java
@@ -94,7 +94,7 @@ public class TestSpellChecker extends TestCase {
private void addwords(IndexReader r, String field) throws IOException {
long time = System.currentTimeMillis();
- spellChecker.indexDictionnary(new LuceneDictionary(r, field));
+ spellChecker.indexDictionary(new LuceneDictionary(r, field));
time = System.currentTimeMillis() - time;
System.out.println("time to build " + field + ": " + time);
}