rename misspelled indexDictionnary method

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@160988 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Erik Hatcher 2005-04-12 00:11:33 +00:00
parent ec522fc1c8
commit 2fe0a80189
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);
}