Do you set timestamp value from you client or do you let ES fill them for
you?

Do you run more than one node? Are the clocks on your nodes running
synchronously?

Jörg


On Thu, Jun 12, 2014 at 2:13 PM, Stefan Eberl <cpppw...@gmail.com> wrote:

> Hey all,
>
> I have a question regarding sorting by _timestamp.
>
> The _timestamp "enabled" setting is set to true, everything else is not
> explicitly specified (so I assume default values are used).
> I have an application inserting new documents periodically and I would
> assume that _timestamp gets filled with the current timestamp.
>
> After a while I perform the following sort
> curl -XPOST 'http://localhost:9200/my_index/my_type/_search?pretty' -d ' {
> "sort" : [
>         { "_timestamp" : {"order" : "desc" } }
>     ]
> }
>
> I would expect to always get the last 10 inserted documents, which is not
> the case.
> Sometimes I get the most recent ones, sometimes I get some historical data.
>
> Thanks for your help.
>
> BR,
> Stefan
>
>
>  --
> 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/1d81d216-f393-4618-afb7-74d71aa7841c%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/1d81d216-f393-4618-afb7-74d71aa7841c%40googlegroups.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 elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAKdsXoFVuicgKrdrAXKWsT3FgQFccXtXOTXuJi9-q3-bWJJpYg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to