我正在尝试使用AEM中的“查询”构建器提取构面。我的查询如下:
1_group.p.or=true
1_group.1_type=cq:Page
1_group.2_type=dam:Asset
2_group.p.or=true
2_group.1_path=/content
2_group.2_path=/content/dam
3_group.p.or=true
3_group.1_tagid=/etc/tags/geometrixx-outdoors/activity/biking
3_group.1_tagid.property=@jcr:content/cq:tags
3_group.2_tagid=/etc/tags/geometrixx-outdoors/activity/biking
3_group.2_tagid.property=@jcr:content/metadata/cq:tags
fulltext=text
p.limit=-1
查询生成器根据上述查询的类型(cq:page,dam:Asset)返回构面,但我需要基于标记的构面。有什么办法,我可以明确提供需要facet的参数。另外,请建议我们是否可以优化此查询以实现相同目标。
谢谢, SHAILESH
答案 0 :(得分:1)
此问题现已解决。错误发生在tagid.property谓词中。它不应该以@。
开头1_group.p.or=true
1_group.1_type=cq:Page
1_group.2_type=dam:Asset
2_group.p.or=true
2_group.1_path=/content
2_group.2_path=/content/dam
3_group.p.or=true
3_group.1_tagid=/etc/tags/geometrixx-outdoors/activity/biking
3_group.1_tagid.property=jcr:content/cq:tags
3_group.2_tagid=/etc/tags/geometrixx-outdoors/activity/biking
3_group.2_tagid.property=jcr:content/metadata/cq:tags
fulltext=text
p.limit=-1