How to implement property preference in Query Builder
Hi All,
How to write query builder query order preference property.
EX: I have one property and will query that property if that property doesn't exist then will query another property.
Hi All,
How to write query builder query order preference property.
EX: I have one property and will query that property if that property doesn't exist then will query another property.
Hello @naruk89179065
abc property exists:
path=/content/wknd/language-masters/en/errors
type=cq:Page
property=jcr:content/abc
property.operation=exists
abc property does not exist:
path=/content/wknd/language-masters/en/errors
type=cq:Page
property=jcr:content/abc
property.operation=exists
property.value=false
abc property does not exist and def property=123
path=/content/wknd/language-masters/en/errors
type=cq:Page
1_property=jcr:content/abc
1_property.operation=exists
1_property.value=false
2_property=jcr:content/def
2_property.value=123
Either (abc property exists) or (abc does not exist and def property=123)
Here 1_group is used to establish Or relation between the 2 conditions.
2_group is used to group "abc does not exist and def property=123"
path=/content/wknd/language-masters/en/errors
type=cq:Page
1_group.1_property=jcr:content/abc
1_group.1_property.operation=exists
1_group.2_group.1_property=jcr:content/abc
1_group.2_group.1_property.operation=exists
1_group.2_group.1_property.value=false
1_group.2_group.2_property=jcr:content/def
1_group.2_group.2_property.value=123
1_group.p.or=true
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.