assert context.searchType() != SearchType.COUNT : "searchType COUNT is not supported using QueryShardRequests";
contextProcessedSuccessfully(context);
context.indexShard().searchService().onQueryPhase(context, System.nanoTime() - time);
return context.queryResult();
} catch (Throwable e) {
context.indexShard().searchService().onFailedQueryPhase(context);
logger.trace("Query phase failed", e);
freeContext(context.id());
throw ExceptionsHelper.convertToRuntime(e);