有没有办法过滤你知道存在的属性?
Map<String, String> predicates = new HashMap<String, String>();
predicates.put("path", searchPath);
predicates.put("type", "cq:Page||dam:Asset");
predicates.put("orderby", orderBy);
QueryBuilder qb = resourceResolver.adaptTo(QueryBuilder.class);
Session session = resourceResolver.adaptTo(Session.class);
Query query = qb.createQuery(PredicateGroup.create(predicates), session);
query.setHitsPerPage(0);
我知道返回的结果应该具有以下属性:“jcr:pubdate”
有没有办法指定日期范围,还是我必须手动对返回的结果执行此操作?