AEM 查询生成器 属性 值不为空
AEM Query Builder property value is not empty
如何在下面的查询构建器代码段中获得 industries 页面 属性 有值的结果? (即,它的值为 而不是 空字符串)
path=/content/apps
type=nt:unstructured
property=industries
property.value=
您可以使用 like
操作来使用 [jcr:like xpath 函数][1]
path=/content/apps
type=nt:unstructured
property=industries
property.value=%_%
property.operation=like
对应的 xpath 查询将是
/jcr:root/content/apps//element(*, nt:unstructured)
[
(jcr:like(@industries, '%_%'))
]
引用文档
As in SQL, the character ‘%’ represents any string of zero or more characters, and the character ‘_’ (underscore) represents any single character.
请注意,如果该值仅包含 space,它仍然被认为是有效的,因为此函数不会 trim 然后验证。只有当没有值时才会从结果中排除。
如何在下面的查询构建器代码段中获得 industries 页面 属性 有值的结果? (即,它的值为 而不是 空字符串)
path=/content/apps
type=nt:unstructured
property=industries
property.value=
您可以使用 like
操作来使用 [jcr:like xpath 函数][1]
path=/content/apps
type=nt:unstructured
property=industries
property.value=%_%
property.operation=like
对应的 xpath 查询将是
/jcr:root/content/apps//element(*, nt:unstructured)
[
(jcr:like(@industries, '%_%'))
]
引用文档
As in SQL, the character ‘%’ represents any string of zero or more characters, and the character ‘_’ (underscore) represents any single character.
请注意,如果该值仅包含 space,它仍然被认为是有效的,因为此函数不会 trim 然后验证。只有当没有值时才会从结果中排除。