From fe52019614fe499d6236826e2b7f2c18e9022c17 Mon Sep 17 00:00:00 2001 From: Daniel Naber Date: Sat, 28 May 2005 19:21:49 +0000 Subject: [PATCH] javadoc fixes git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@178880 13f79535-47bb-0310-9956-ffa450edef68 --- .../lucene/search/spell/LuceneDictionary.java | 2 +- .../search/spell/PlainTextDictionary.java | 11 +++--- .../lucene/search/spell/SpellChecker.java | 35 +++++++++---------- .../lucene/search/spell/SuggestWord.java | 4 +-- 4 files changed, 26 insertions(+), 26 deletions(-) diff --git a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java index b8808a78bf7..dd5fcc2947f 100755 --- a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java +++ b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/LuceneDictionary.java @@ -26,7 +26,7 @@ import org.apache.lucene.index.Term; import java.io.*; /** - * Lucene Dictionnary + * Lucene Dictionary * * @author Nicolas Maisonneuve */ diff --git a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java index 565f0e76632..36896017bb5 100755 --- a/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java +++ b/contrib/spellchecker/src/java/org/apache/lucene/search/spell/PlainTextDictionary.java @@ -25,11 +25,12 @@ import java.io.*; /** - * dictionary represented by a file text - * Format allowed: 1 word per line: - * word1 - * word2 - * word3 + * Dictionary represented by a file text. + * + *

Format allowed: 1 word per line:
+ * word1
+ * word2
+ * word3
* * @author Nicolas Maisonneuve */ 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 f451c64e86b..fde9f588569 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 @@ -42,15 +42,16 @@ import java.util.*; * (initially inspired by the David Spencer code). *

* - *

- * Spell Checker spellchecker= new SpellChecker (spellDirectory);
- *
- * //To index a field of a user index
- * spellchecker.indexDictionary(new LuceneDictionary(my_lucene_reader, a_field));
- *
- * //To index a file containing words
- * spellchecker.indexDictionary(new PlainTextDictionary(new File("myfile.txt")));
- *

+ *

Example Usage: + * + *

+ *  SpellChecker spellchecker = new SpellChecker(spellIndexDirectory);
+ *  // To index a field of a user index:
+ *  spellchecker.indexDictionary(new LuceneDictionary(my_lucene_reader, a_field));
+ *  // To index a file containing words:
+ *  spellchecker.indexDictionary(new PlainTextDictionary(new File("myfile.txt")));
+ *  String[] suggestions = spellchecker.suggestSimilar("misspelt", 5);
+ * 
* * @author Nicolas Maisonneuve * @version 1.0 @@ -83,8 +84,7 @@ public class SpellChecker { /** - * Set the accuraty 0