Skip to content

Commit 277c886

Browse files
committed
fix(rest): fix stats check
1 parent 0e92fd0 commit 277c886

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest/src/main/groovy/whelk/rest/api/SearchUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ private Map<String, Object> queryElasticSearch(Map<String, String[]> queryParame
278278
items, mappings, pageParams,
279279
limit, offset, total);
280280

281-
if (stats != null && !stats.isEmpty() && (suggest == null || !spell.equals("only"))) {
281+
if (stats != null && !stats.isEmpty() && (suggest == null || (spell != null && !spell.equals("only")))) {
282282
stats.put(JsonLd.ID_KEY, "#stats");
283283
result.put("stats", stats);
284284
}

0 commit comments

Comments
 (0)