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
if options[:read_timeout]
warn "DEPRECATION: Rsolr.new/connect option `read_timeout` is deprecated and will be removed in Rsolr 3. `timeout` is currently a synonym, use that instead."
end
We set the timeout like this: Sunspot.session.config.solr.read_timeout = 2
I tried to change it to: Sunspot.session.config.solr.timeout = 2
This leads to the error:
NoMethodError:
undefined method `timeout=' for #<LightConfig::Configuration:0x00007f8134c3c618>
DEPRECATION: Rsolr.new/connect option 'read_timeout' is deprecated and will be removed in Rsolr 3. 'timeout' is currently a synonym, use that instead.
https://github.com/rsolr/rsolr/blob/v2.5.0/lib/rsolr/client.rb#L39
We set the timeout like this:
Sunspot.session.config.solr.read_timeout = 2
I tried to change it to:
Sunspot.session.config.solr.timeout = 2
This leads to the error:
The read_timeout for the LightConfig::Configuration is defined here:
https://github.com/sunspot/sunspot/blob/v2.6.0/sunspot/lib/sunspot/configuration.rb#L26
Quick fix would be to change the connection config in
https://github.com/sunspot/sunspot/blob/v2.6.0/sunspot/lib/sunspot/session.rb#L259
Please let me know if you think there are any other side effects.
read_timeout
is used quit often.https://github.com/sunspot/sunspot/pull/1017/files
The text was updated successfully, but these errors were encountered: