class FAQRespositoryImpl implements FAQRepository, Constants {

    @Override
    public List<Map<String, Object>> getFAQSFromEs(String widgetId,
            String domainId) throws DataException {
        Map<String, Object> mustFilter = new HashMap<>();
        mustFilter.put(CommonUtils.convertAttributetoKeyword("widgetid"),
                widgetId);
        if (!Strings.isNullOrEmpty(domainId)) {
            mustFilter.put(CommonUtils.convertAttributetoKeyword("domainid"),
                    domainId);
        }
       try{
        return elasticSearchRepository.getSortedDataFromES("faqs", "faqinfo",
                mustFilter, null, null, null, null, null);
       }catch(Exception e){
           throw new DataException(e);
       }
    }

}