When a search hits a document, how can ES only return parts of that document?

I have a document with nested types and I use nested query to search on the
nested part.
Now I get a hit and the search result returned is the whole doc.
Could anyone tell me how can I get only this nested part or the part of
document which contains this nested part?
Should I use parent-child? Or using nested types can also meet my
requirement?
Thanks!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Nested types do not support returning only the relevant nested docs (as of
now).

--
Ivan

On Thu, Jul 4, 2013 at 9:58 AM, 少爷允之 chang.zhang29@googlemail.com wrote:

I have a document with nested types and I use nested query to search on
the nested part.
Now I get a hit and the search result returned is the whole doc.
Could anyone tell me how can I get only this nested part or the part of
document which contains this nested part?
Should I use parent-child? Or using nested types can also meet my
requirement?
Thanks!

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.