grouping search response

classic Classic list List threaded Threaded
2 messages Options
nmz
Reply | Threaded
Open this post in threaded view
|

grouping search response

nmz
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?
Reply | Threaded
Open this post in threaded view
|

Re: grouping search response

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

On Fri, May 11, 2012 at 2:39 PM, nmz <[hidden email]> 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?