SpellingResult res = new SpellingResult(); for (Token currentToken : options.tokens) { String tokenText = currentToken.toString();
return EMPTY_RESULT; SpellingResult res = new SpellingResult(); CharsRef scratch = new CharsRef();
boolean extendedResults) throws IOException { SpellingResult result = new SpellingResult(tokens); reader = determineReader(reader); Term term = field != null ? new Term(field, "") : null;
SpellingResult result = new SpellingResult(); float accuracy = (options.accuracy == Float.MIN_VALUE) ? checker.getAccuracy() : options.accuracy;
spellingResult = spellChecker.getSuggestions(options); } else { spellingResult = new SpellingResult();