diff --git a/web/app/controllers/resources/Application.java b/web/app/controllers/resources/Application.java index 15f085610..e11446e33 100644 --- a/web/app/controllers/resources/Application.java +++ b/web/app/controllers/resources/Application.java @@ -394,7 +394,7 @@ private static JsonNode toSuggestions(JsonNode json, String field) { : typeText)); }); }); - return Json.toJson(suggestions.collect(Collectors.toSet())); + return Json.toJson(suggestions.collect(Collectors.toList())); } private static Stream fieldValues(String field, JsonNode document) {