Results executeQuery(StoreQuery query) throws SearchException {
if (!query.requestsKeys() && !query.requestsValues() && query.requestedAttributes().isEmpty() && query.getAggregatorInstances().isEmpty()) {
String msg = "No results specified. " +
"Please specify one or more of includeKeys(), includeValues(), includeAggregator() or includeAttribute()";
throw new SearchException(msg);
}
if (isStatisticsEnabled()) {
long start = System.currentTimeMillis();
Results results = this.compoundStore.executeQuery(query);