You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When many queries are invoked in many parts of an app, it seems challenging to have a customised value of request_timeout per query, as client instance is set on first invocation in a thread.
Ability to override client parameters per query call seems like a straightforward solution
Additional context
# Main elasticsearch-ruby client instance#defclientThread.current[:chewy_client] ||= beginclient_configuration=configuration.deep_dupclient_configuration.delete(:prefix)# used by Chewy, not relevant to Elasticsearch::Clientblock=client_configuration[:transport_options].try(:delete,:proc)
::Elasticsearch::Client.new(client_configuration, &block)endend
The text was updated successfully, but these errors were encountered:
Per-call client configuation adjustments.
When many queries are invoked in many parts of an app, it seems challenging to have a customised value of
request_timeout
per query, as client instance is set on first invocation in a thread.Ability to override client parameters per query call seems like a straightforward solution
Additional context
The text was updated successfully, but these errors were encountered: