Correct usage of fulltext and relPath in Query Builder? Or, what is the difference between @jcr:content/cq:tags, jcr:content/cq:tags, and jcr:content/@cq:tags? | Community
Skip to main content
Level 4
May 10, 2023
Solved

Correct usage of fulltext and relPath in Query Builder? Or, what is the difference between @jcr:content/cq:tags, jcr:content/cq:tags, and jcr:content/@cq:tags?

  • May 10, 2023
  • 2 replies
  • 1496 views

When referencing the AEM Query Builder Cheat Sheet, I am noticing that the fulltext relPath is referencing `jcr:content/@cq:tags`.  However, on the same page, there are references to `jcr:content/cq:tags`, and I feel like I've seen `@jcr:content/cq:tags` in other places.

 

What is the correct usage here?  How do you know where the @ needs to go inside of the query?

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by MayurSatav

hi @dylanmccurry ,

The placement of the "@" symbol in the query depends on whether the property being referenced is a node or an attribute of a node. If it is an attribute, then the "@" symbol should be placed before the property name. If it is a sub-node, then the property name should be referenced directly.

2 replies

MayurSatav
Community Advisor and Adobe Champion
MayurSatavCommunity Advisor and Adobe ChampionAccepted solution
Community Advisor and Adobe Champion
May 10, 2023

hi @dylanmccurry ,

The placement of the "@" symbol in the query depends on whether the property being referenced is a node or an attribute of a node. If it is an attribute, then the "@" symbol should be placed before the property name. If it is a sub-node, then the property name should be referenced directly.

arunpatidar
Community Advisor
Community Advisor
May 10, 2023