Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments

Query Builder API: Returns only the path instead of whole details. Is it possible to get complete content ?


Level 5

I am doing a query which looks as follows:


nodename=master featuredImage primaryCategory


The results look like:



  "success": true,
  "results": 2,
  "total": 2,
  "more": false,
  "offset": 0,
  "hits": [
      "primaryCategory": "/content/dam/health",
      "author": "Article Author"
      "author": "Kamal"



However with GQL, I get the results as:



"primaryCategory": {
"_path": "/content/dam/health",
"title": "Health",
"uri": "health-resources/health"


Is there a way to tell queryBuilder to not only return the path but also the other parameters like title and uri?

2 Replies


Level 8

p.hits=full  : will give all the properties in the node.

p.hits=selective :  Use this if you want to return selective properties in search result.


Please check this blog. its helpful.


Level 5

Hey Dharmraj, thanks for the response.


Whatever you shared I am already aware of that however my question wasnt that if you see the difference when making call with GQl vs making call with queryBuilder api, you will observe when another content fragment is referenced in one content fragment only then it returns only the path of other content fragment however I want all its content and not just path.


The most simple example would be image.

In case of image it returns path of image however GQl api returns whole response like publishUrl authorUrl etc