/** * Assumes count = 1. * * @see #getSuggestions(Collection, org.apache.lucene.index.IndexReader, int, boolean, boolean) */ public SpellingResult getSuggestions(Collection<Token> tokens, IndexReader reader, boolean onlyMorePopular, boolean extendedResults) throws IOException { return getSuggestions(tokens, reader, 1, onlyMorePopular, extendedResults); }
/** * Assumes count = 1, onlyMorePopular = false, extendedResults = false * * @see #getSuggestions(Collection, org.apache.lucene.index.IndexReader, int, boolean, boolean) */ public SpellingResult getSuggestions(Collection<Token> tokens, IndexReader reader) throws IOException { return getSuggestions(tokens, reader, 1, false, false); }
/** * Assumes onlyMorePopular = false, extendedResults = false * * @see #getSuggestions(Collection, org.apache.lucene.index.IndexReader, int, boolean, boolean) */ public SpellingResult getSuggestions(Collection<Token> tokens, IndexReader reader, int count) throws IOException { return getSuggestions(tokens, reader, count, false, false); }
IndexReader reader = rb.req.getSearcher().getReader(); boolean collate = params.getBool(SPELLCHECK_COLLATE, false); SpellingResult spellingResult = spellChecker.getSuggestions(tokens, reader, count, onlyMorePopular, extendedResults); if (spellingResult != null) {
alternativeTermCount, suggestMode, extendedResults, accuracy, customParams); spellingResult = spellChecker.getSuggestions(options); } else { spellingResult = new SpellingResult();