diff --git a/src/java/org/apache/solr/handler/SpellCheckerRequestHandler.java b/src/java/org/apache/solr/handler/SpellCheckerRequestHandler.java index 8013d80f2d8..b262fa91f58 100644 --- a/src/java/org/apache/solr/handler/SpellCheckerRequestHandler.java +++ b/src/java/org/apache/solr/handler/SpellCheckerRequestHandler.java @@ -152,6 +152,7 @@ public class SpellCheckerRequestHandler extends RequestHandlerBase { IndexReader indexReader = req.getSearcher().getReader(); Dictionary dictionary = new LuceneDictionary(indexReader, termSourceField); + spellChecker.clearIndex(); spellChecker.indexDictionary(dictionary); reopen(); }