class SearchServiceImpl implements SearchService {

    @Override
    public SearchResponseDto search(String searchQuery) {
        PageableDto<SearchNewsDto> ecoNews = ecoNewsService.search(searchQuery);
        PageableDto<SearchTipsAndTricksDto> tipsAndTricks = tipsAndTricksService.search(searchQuery);

        return SearchResponseDto.builder()
            .ecoNews(ecoNews.getPage())
            .tipsAndTricks(tipsAndTricks.getPage())
            .countOfResults(ecoNews.getTotalElements() + tipsAndTricks.getTotalElements())
            .build();
    }

}