Hello, my question is simple, but I want to understand why this query returns content fragments from other folders even though I specified the "riosp" folder? The "group.2" returns only the fragments inside the "riosp" folder correctly, but the "group.1" returns fragments from other folders.
My folders
/content/dam/conteúdo-multicanal/rodovias/conteudo/taxas-de-pedagio/riosp
/content/dam/conteúdo-multicanal/rodovias/conteudo/taxas-de-pedagio/autoban
/content/dam/conteúdo-multicanal/rodovias/conteudo/taxas-de-pedagio/msvia
My code
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @NathanVieira , Updating your queryParameterMap to below should solve the issue. Please try this.
queryParameterMap.put("group.p.or", "true");
queryParameterMap.put("group.1_group.property", JcrConstants.JCR_CONTENT + "/data/cq:model");
queryParameterMap.put("group.1_group.property.value", "/conf/myproject/settings/dam/cfm/models/veiculos-com-multiplicadores");
queryParameterMap.put("group.1_group.path", "/content/dam/conteúdo-multicanal/rodovias/conteudo/taxas-de-pedagio/riosp");
queryParameterMap.put("group.2_group.property", JcrConstants.JCR_CONTENT + "/data/cq:model");
queryParameterMap.put("group.2_group.property.value", "/conf/myproject/settings/dam/cfm/models/ponto-de-parada");
queryParameterMap.put("group.2_group.path", "/content/dam/conteúdo-multicanal/rodovias/conteudo/ponto-de-parada/riosp");
Hi @NathanVieira , Updating your queryParameterMap to below should solve the issue. Please try this.
queryParameterMap.put("group.p.or", "true");
queryParameterMap.put("group.1_group.property", JcrConstants.JCR_CONTENT + "/data/cq:model");
queryParameterMap.put("group.1_group.property.value", "/conf/myproject/settings/dam/cfm/models/veiculos-com-multiplicadores");
queryParameterMap.put("group.1_group.path", "/content/dam/conteúdo-multicanal/rodovias/conteudo/taxas-de-pedagio/riosp");
queryParameterMap.put("group.2_group.property", JcrConstants.JCR_CONTENT + "/data/cq:model");
queryParameterMap.put("group.2_group.property.value", "/conf/myproject/settings/dam/cfm/models/ponto-de-parada");
queryParameterMap.put("group.2_group.path", "/content/dam/conteúdo-multicanal/rodovias/conteudo/ponto-de-parada/riosp");