Query throws error using querybuilder but runs fine in querydebug Here is the query, it runs fine in querybuilder returning zero records that match, which is OK.path=/content/imf/en/board-meetings/calendartype=cq:EventCalendarfulltext= Statement by the Managing Director on the IEO Report on Behind the Scenes with Data at the IMF - An IEO Evaluationfulltext.relPath=@jcr:title;orderby=@boardDateorderby.sort=desc;p.limit=0 But if I run the same using the code,Map<String, Object> paramMap = new HashMap<String, Object>(); paramMap.put("path", BOARD_MEETING_EVENTS_PATH); paramMap.put("type", "cq:EventCalendar"); paramMap.put("fulltext", documentInfo.getDocumentTitle()); paramMap.put("fulltext.relPath", "@jcr:title"); paramMap.put("orderby", "@boardDate"); paramMap.put("orderby.sort", "desc"); paramMap.put("p.limit", "0"); Query query = queryBuilder.createQuery(PredicateGroup.create(paramMap), session); SearchResult searchResult = query.getResult(); Throws error: /jcr: