Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

When using QueryBuilder with selective properties, how can we return the path of each result as well?

Avatar

Level 7

Hi,

When using default "p.hits", search results contain path as well. However when using the "selective" option, path is no longer returned.

Is there a way to return path with selective option?

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 10

In p.properties include jcr:path separated by a space

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

In p.properties include jcr:path separated by a space