elasticsearch5/src/main/java/site/ycsb/db/elasticsearch5/ElasticsearchRestClient.java [223:235]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        return Status.NOT_FOUND;
      } else if (statusCode != HttpStatus.SC_OK) {
        return Status.ERROR;
      }

      final Map<String, Object> map = map(searchResponse);
      @SuppressWarnings("unchecked") final Map<String, Object> hits = (Map<String, Object>)map.get("hits");
      final int total = (int)hits.get("total");
      if (total == 0) {
        return Status.NOT_FOUND;
      }
      @SuppressWarnings("unchecked") final Map<String, Object> hit =
              (Map<String, Object>)((List<Object>)hits.get("hits")).get(0);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



elasticsearch5/src/main/java/site/ycsb/db/elasticsearch5/ElasticsearchRestClient.java [265:277]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        return Status.NOT_FOUND;
      } else if (statusCode != HttpStatus.SC_OK) {
        return Status.ERROR;
      }

      final Map<String, Object> map = map(searchResponse);
      @SuppressWarnings("unchecked") final Map<String, Object> hits = (Map<String, Object>)map.get("hits");
      final int total = (int)hits.get("total");
      if (total == 0) {
        return Status.NOT_FOUND;
      }
      @SuppressWarnings("unchecked") final Map<String, Object> hit =
              (Map<String, Object>)((List<Object>)hits.get("hits")).get(0);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



