(search) Absorb SearchQueryIndexService into SearchOperator, and clean up SearchOperator

This commit is contained in:
Viktor Lofgren 2024-08-22 11:50:52 +02:00
parent 2db0e446cb
commit ea75ddc0e0

View File

@ -222,9 +222,9 @@ public class SearchOperator {
}
private String searchTermToProblemDescription(String term, List<String> suggestions) {
String suggestionsStr = suggestions.stream().map(s -> STR."\"\{s}\"").collect(Collectors.joining(", "));
String suggestionsStr = suggestions.stream().map(s -> "\"" + s + "\"").collect(Collectors.joining(", "));
return STR."\"\{term}\" could be spelled \{suggestionsStr}";
return "\"%s\" could be spelled %s".formatted(term, suggestionsStr);
}
}