Aggregation on multiple fiels_uid or _id field

Hi,
I am developing aggregation using _uid or _id field.
I can use this internal field in facet (getting field mapper and pass it to FacetExecutor), how ever I do not know how to do the same using aggregation?
Thank you!