aggregateResults.add(aggregator.aggregateResult());
}
if (anyMatches && !includeResults && !aggregateResults.isEmpty()) {
// add one row in the results if the only thing included was aggregators and anything matched
results.add(new AggregateOnlyResult(query));
}
if (!aggregateResults.isEmpty()) {
for (Result result : results) {