docs: private List<Hit<Map<String, Object>, Void>> listEntities(String type,
              SearchSourceBuilder searchSourceBuilder) throws StorageException {
          try {
              String query = searchSourceBuilder.string();
              Search search = new Search.Builder(query).addIndex(getIndexName()).addType(type).build();
              SearchResult response = esClient.execute(search);
              @SuppressWarnings({ "rawtypes", "unchecked" })
              List<Hit<Map<String, Object>, Void>> thehits = (List) response.getHits(Map.class);
              return thehits;
          } catch (Exception e) {
              throw new StorageException(e);
          }
      }