you can try like the below:
public SearchResult performSearch(String searchTerm, int offset, int limit, ResourceResolver resourceResolver) { Map<String, String> map = new HashMap<>(); map.put("type", "cq:Page"); map.put("fulltext", searchTerm); map.put("p.offset", String.valueOf(offse...