diff --git a/src/main/java/org/springframework/data/elasticsearch/core/suggest/Completion.java b/src/main/java/org/springframework/data/elasticsearch/core/suggest/Completion.java index 5413ff87f..a7613b028 100644 --- a/src/main/java/org/springframework/data/elasticsearch/core/suggest/Completion.java +++ b/src/main/java/org/springframework/data/elasticsearch/core/suggest/Completion.java @@ -28,6 +28,7 @@ import org.springframework.lang.Nullable; * @author Mewes Kochheim * @author Robert Gruendler * @author Peter-Josef Meisch + * @author Houtaroy */ public class Completion { @@ -35,6 +36,10 @@ public class Completion { @Nullable private Map> contexts; @Nullable private Integer weight; + public Completion() { + this.input = new String[0]; + } + @PersistenceConstructor public Completion(String[] input) { this.input = input;