I perfom term aggregation on elasticsearch documents that gives me the keyword and its doc count, but i also want all the id of those document that keyword belongs to. How to get that. For example
Key: "ice cream",
doc_count: 3
But what i want this
Key: "ice cream",
doc_count: 3,
doc_ids: [ 1, 2, 3]