_parent in top hits aggregation

Hello!

We are using script field 'doc["_parent"].value' to read parent id in tog
hits aggregation. Is there better (more efficient) way to read it?

Maxim

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/917dd78e-4608-4b17-a11c-ea030e1b0065%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.