Grouping search response

Is it possible to get the response as a group based on some id[id - is
a field of my document], I dont need to do a group by, but in the
search response I need the documents having the same field value for
'id' to be returned together.

Can facets help in this?

No, there isn't support for that, at least yet, in elasticsearch.

On Fri, May 11, 2012 at 2:39 PM, nmz s.namitha.s@gmail.com wrote:

Is it possible to get the response as a group based on some id[id - is
a field of my document], I dont need to do a group by, but in the
search response I need the documents having the same field value for
'id' to be returned together.

Can facets help in this?