diff --git a/modules/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java b/modules/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java index 450d11bacac..c52c6948872 100755 --- a/modules/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java +++ b/modules/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java @@ -274,89 +274,6 @@ public class SpellChecker implements java.io.Closeable { return this.suggestSimilar(word, numSug, null, null, SuggestMode.SUGGEST_WHEN_NOT_IN_INDEX, accuracy); } - /** - * Suggest similar words (optionally restricted to a field of an index). - * - *
As the Lucene similarity that is used to fetch the most relevant n-grammed terms - * is not the same as the edit distance strategy used to calculate the best - * matching spell-checked word from the hits that Lucene found, one usually has - * to retrieve a couple of numSug's in order to get the true best match. - * - *
I.e. if numSug == 1, don't count on that suggestion being the best one. - * Thus, you should set this value to at least 5 for a good suggestion. - * - *
Uses the {@link #getAccuracy()} value passed into the constructor as the accuracy. - * - * @param word the word you want a spell check done on - * @param numSug the number of suggested words - * @param ir the indexReader of the user index (can be null see field param) - * @param field the field of the user index: if field is not null, the suggested - * words are restricted to the words present in this field. - * @param morePopular return only the suggest words that are as frequent or more frequent than the searched word - * (only if restricted mode = (indexReader!=null and field!=null) - * @throws IOException if the underlying index throws an {@link IOException} - * @throws AlreadyClosedException if the Spellchecker is already closed - * @return String[] the sorted list of the suggest words with these 2 criteria: - * first criteria: the edit distance, second criteria (only if restricted mode): the popularity - * of the suggest words in the field of the user index - * - * @see #suggestSimilar(String, int, IndexReader, String, SuggestMode, float) - * - * @deprecated - * use suggestSimilar(String, int, IndexReader, String, SuggestMode) - *
As the Lucene similarity that is used to fetch the most relevant n-grammed terms - * is not the same as the edit distance strategy used to calculate the best - * matching spell-checked word from the hits that Lucene found, one usually has - * to retrieve a couple of numSug's in order to get the true best match. - * - *
I.e. if numSug == 1, don't count on that suggestion being the best one. - * Thus, you should set this value to at least 5 for a good suggestion. - * - * @param word the word you want a spell check done on - * @param numSug the number of suggested words - * @param ir the indexReader of the user index (can be null see field param) - * @param field the field of the user index: if field is not null, the suggested - * words are restricted to the words present in this field. - * @param morePopular return only the suggest words that are as frequent or more frequent than the searched word - * (only if restricted mode = (indexReader!=null and field!=null) - * @param accuracy The minimum score a suggestion must have in order to qualify for inclusion in the results - * @throws IOException if the underlying index throws an {@link IOException} - * @throws AlreadyClosedException if the Spellchecker is already closed - * @return String[] the sorted list of the suggest words with these 2 criteria: - * first criteria: the edit distance, second criteria (only if restricted mode): the popularity - * of the suggest words in the field of the user index - * - * @see #suggestSimilar(String, int, IndexReader, String, SuggestMode, float) - * - * @deprecated - * use suggestSimilar(String, int, IndexReader, String, SuggestMode, float) - *