class FilterRepositoryImpl implements FilterRepository, Constants {

    public Map<String, Long> getRegionsFromES(String assetGroup)
            throws DataException {
        Map<String, Object> mustFilter = new HashMap<>();
        Map<String, Object> mustNotFilter = new HashMap<>();
        String aggsFilter = CommonUtils.convertAttributetoKeyword("region");
       try{
        return elasticSearchRepository.getTotalDistributionForIndexAndType(
                assetGroup, null, mustFilter, mustNotFilter, null, aggsFilter,
                THOUSAND, null);
       }catch(Exception e){
           throw new DataException(e);
       }
    }

}