class FilterRepositoryImpl implements FilterRepository, Constants {

    public List<Map<String, Object>> getAccountsFromES(String assetGroup)
            throws DataException {
        Map<String, Object> mustFilter = new HashMap<>();
        mustFilter.put("latest", "true");
        ArrayList<String> fields = new ArrayList<>();
        fields.add("accountname");
        fields.add("accountid");
        try{
        return elasticSearchRepository.getSortedDataFromES(assetGroup,
                "account", mustFilter, null, null, fields, null, null);
        }catch(Exception e){
            throw new DataException(e);
        }
    }

}