Hey,

can you try to use date formats instead of the named identificators like
date_time and see if it works? Also, can you check the exception of the
elasticsearch logs?


--Alex


On Wed, Apr 9, 2014 at 4:22 AM, Tim Uckun <[email protected]> wrote:

> I have a search like this
>
> {
>     size:         0,
>     query:        {
>         match_all: {}
>     },
>     aggregations: {
>
>         min_date: {min: {field: 'time_stamp', format: 'date_time'}},
>         max_date: {max: {field: 'time_stamp', format: "yyyy-MM-dd HH:mm"}}
>
>     }
> }
>
> This fails with a parse error. I can only seem to run this query without a
> format and I get a unix timestamp. What can I do to get the timestamp
> formatted properly.
>
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CAGuHJrN8ZFNF4aN-qSUawR0m26r3q%2BvLdSAAaYCdeZepzfnTGw%40mail.gmail.com<https://groups.google.com/d/msgid/elasticsearch/CAGuHJrN8ZFNF4aN-qSUawR0m26r3q%2BvLdSAAaYCdeZepzfnTGw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAGCwEM9f7BV9qD0b1A4B2Nfe9b9GmV5mDoZ%3DkFHdQ7qQfCyTEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to