Nested types in queries

I read in a recent post on this forum that nested data cannot be sorted
upon in the query results? Is this true? It'd be a good thing to put on the
nested type page :slight_smile:

It really kills any practical use for my project, alas.

Also, what exactly gets returned by default doing nested queries? All of
the parent and all of the nested child that matched? Can any of that be
controlled?

On Tue, May 8, 2012 at 6:17 PM, Dennis gearond@gmail.com wrote:

I read in a recent post on this forum that nested data cannot be sorted
upon in the query results? Is this true? It'd be a good thing to put on the
nested type page :slight_smile:

It really kills any practical use for my project, alas.

Yes, you can't sort based on nested documents

Also, what exactly gets returned by default doing nested queries? All of
the parent and all of the nested child that matched? Can any of that be
controlled?

The full document you indexed is returned, you can pick and choose what
parts of the document gets returned, but not specific nested document
elements that matched.