DeprecationWarning for request_timeout

I initialize my ES connection in Python with Elasticsearch.options(), setting a global timeout. For some complex searches I need a custom (longer) timeout. To achieve this, I use, [..]). With the update to the latest & greatest version, I’ll get a warning for the complex searches:

DeprecationWarning: Passing transport options in the API method is deprecated. Use 'Elasticsearch.options()' instead.
  result =, [..])

What the cleanest way to implement custom timeouts now, instead of using request_timeout for those specific calls? Thanks!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.