class ElasticSearchUtil {

    public static boolean isResponseEmpty(SearchResponse searchResponse) {
        if (searchResponse == null || searchResponse.getHits() == null || searchResponse.getHits().getHits() == null
                || searchResponse.getHits().getHits().length == 0) {
            return true;
        }
        return false;
    }

    private  ElasticSearchUtil();

}