// total counts can only be fetched by entity searcher
if ($criteria->
getTotalCountMode() !== Criteria::TOTAL_COUNT_MODE_NONE
) { return true;
} if ($criteria->
getTerm()) { return true;
} // paginated lists are handled by entity searcher
if ($criteria->
getOffset() !== null ||
$criteria->
getLimit() !== null
) { return true;
} // group by is only supported by entity searcher
if (\
count($criteria->
getGroupFields())) { return true;
} // sortings are only supported by entity searcher
if (\
count($criteria->
getSorting())) { return true;
}