Re: ElasticSearch: access document nested value in groovy script

2015-01-15 Thread Anil Kumar
I found this. I had to use _source.medals to access the nested documents which are stored in disk and not in memory. Thanks On Wednesday, January 14, 2015 at 10:55:15 AM UTC-8, Anil Kumar wrote: > > I have a document stored in ElasticSearch as below. _source: > > { > &qu

ElasticSearch: access document nested value in groovy script

2015-01-14 Thread Anil Kumar
I have a document stored in ElasticSearch as below. _source: { "firstname": "John", "lastname": "Smith", "medals":[ { "bucket": 100, "count": 1 }, { "bucket": 150, "count": 2 } ] } I