Hi Binh, Actually I did the same but the problem is I want to fetch multiple record.
For ex. 1) There is query which returns multiple clusters and that clusters have labels. 2) Now I want to fetch the label from all clusters . 3) So if I am writing the query like return { label:root.clusters[0].label}; 4) It will return the label for cluster 0. 5) But I want the label from all clusters so how I can achieve that? -- View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Elasticsearch-output-format-with-head-plugin-tp4050614p4050774.html Sent from the ElasticSearch Users mailing list archive at Nabble.com. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1393827676111-4050774.post%40n3.nabble.com. For more options, visit https://groups.google.com/groups/opt_out.