davedash/elasticutils — pull request #14 by pennyfx (2011-11-04 20:56:20+00:00)
Title: Retry queries that timeout

ES is fickle and likes to timeout for no apparent reason.

This patch adds retry capabilities inside S.raw, so if a timeout exception occurs it can retry the query before finally raising the TimeoutError exception.

New settings:

ES_RETRY = Number of times to retry
ES_RETRY_INTERVAL = Seconds to wait before each retry