Hi,

I ran the commands in the following gist, on master, without error.  Would 
you be able to post the error you get and a similar reproducible example to 
help diagnose the issue you are running into? Also, which version of 
Elasticsearch are you running?

https://gist.github.com/colings86/46fbb0b22c2f3c4348ae

Thanks

Colin

On Sunday, 27 July 2014 17:53:29 UTC+1, Valentin wrote:
>
> Hi,
>
> I am trying to use this aggregation which does not work:
> "aggs": {
>     "winners": {
>       "terms": {
>         "field": "urls",
>         "order": {
>           "diff": "desc"
>         }
>       },
>       "aggs": {
>         "diff": {
>           "sum": {
>             "script": "(doc['datetime'].date.getMillis() < 1406332800000) 
> ? -1 : 1",
>             "lang": "groovy"
>           }
>         }
>       }
>     }
>   }
>
> Can anyone help?
>
> Cheers,
> Valentin
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/22d43f4f-cf42-4e74-b109-e21c4cfe4426%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to