mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
(search) Absorb SearchQueryIndexService into SearchOperator, and clean up SearchOperator
This commit is contained in:
parent
2db0e446cb
commit
ea75ddc0e0
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user