private void loadOrExecuteQueryPhase(final ShardSearchRequest request,final SearchContext context,final QueryPhase queryPhase) throws Exception {
  final boolean canCache=indicesQueryCache.canCache(request,context);
  if (canCache) {
    indicesQueryCache.loadIntoContext(request,context,queryPhase);
  }
 else {
    queryPhase.execute(context);
  }
}

private void loadOrExecuteQueryPhase ( final ShardSearchRequest request , final SearchContext context , final QueryPhase queryPhase ) throws Exception { final boolean canCache = indicesQueryCache . canCache ( request , context ) ; if ( canCache ) { indicesQueryCache . loadIntoContext ( request , context , queryPhase ) ; } else { queryPhase . execute ( context ) ; } }
try to load the query results from the cache or execute the query phase directly if the cache cannot be used .
