diff --git a/core/src/main/java/org/elasticsearch/search/suggest/SuggestUtils.java b/core/src/main/java/org/elasticsearch/search/suggest/SuggestUtils.java index 64c102bb6c4..f3a034cda61 100644 --- a/core/src/main/java/org/elasticsearch/search/suggest/SuggestUtils.java +++ b/core/src/main/java/org/elasticsearch/search/suggest/SuggestUtils.java @@ -130,6 +130,7 @@ public final class SuggestUtils { numTokens++; } consumer.end(); + success = true; } finally { if (success) { stream.close();