Query timing out

Hi all, hoping to get some help with this. I am trying to retrieve the
latest tweet by a person. I'm using the javascript library. Using the
elastic.js library to help build a query. Here is the query generated:
{"query":
{"match":
{"talent_id":{"query":"546e50b989fe3400007230c4"}}},
"sort":[{"post_date":{"order":"desc"}}],"size":1}

When I run this query through curl it works just fine, but when I run it
through the elasticsearch JS lib it times out regularly (not always but a
lot). The curl one comes back almost immediately which I would expect.

Any thoughts on why the JS lib times out? Or a better way to write my query
above to get what I want?

Thank you in advance!

-warner

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAJNTuMBj%3DwoYzBb1D5CAv9n6LgRm-n_am3yafT99-2tNhWRAZg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.