mirror of https://github.com/apache/lucene.git
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:
parent
ec522fc1c8
commit
2fe0a80189
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue