nested properties

I'm querying the search API through Postman with the includefields parameter and have a question that I could not find docs for: 

How do I target nested properties? I'd like to return the author displayname from content > createdbyuser > displayname. The following query does not seem to be correct: 

https://mysite/api.ashx/v2/search.json?Category=blog&PageSize=1&includefields=url,content.createdbyuser.displayname 
Returns: 


"PageSize": 1, 
"PageIndex": 0, 
"TotalCount": 75, 
"SearchResults": [ 

"Url": "https://mysite/group/b/blog/posts/post", 
"Content": { 
"Url": "https://mysite/group/b/blog/posts/post


], 
"FieldFacets": [], 
"DateRangeFacets": [], 
"Info": [], 
"Warnings": [], 
"Errors": [] 

Parents
  • Unfortunately, this appears to be a bug, and I've logged it for review. Include/ExcludeFields becomes unreliable for deeply nested objects.

    So while you can specify:

    IncludeFields=Url,Content.ContentId

    You can't currently specify:

    IncludeFields=Url,Content.CreatedByUser.Id

    TE-8182: Review and resolve issues with IncludeFields functionality of rest endpoints

    Declined as "Won't Do":

    This issue has been closed (Reason: Age). If you have questions about this issue, please contact support.

    I apologize for the inconvenience.

Reply
  • Unfortunately, this appears to be a bug, and I've logged it for review. Include/ExcludeFields becomes unreliable for deeply nested objects.

    So while you can specify:

    IncludeFields=Url,Content.ContentId

    You can't currently specify:

    IncludeFields=Url,Content.CreatedByUser.Id

    TE-8182: Review and resolve issues with IncludeFields functionality of rest endpoints

    Declined as "Won't Do":

    This issue has been closed (Reason: Age). If you have questions about this issue, please contact support.

    I apologize for the inconvenience.

Children
No Data