This class implements a session proxy that creates a different Session object for each thread. Any multithreaded application should use this proxy.
The configuration with which the thread-local sessions are initialized.
Optionally pass an existing Sunspot::Configuration object. If none is passed, a default configuration is used; it can then be modified using the config attribute.
# File lib/sunspot/session_proxy/thread_local_session_proxy.rb, line 29 def initialize(config = Sunspot::Configuration.build) @config = config ObjectSpace.define_finalizer(self, FINALIZER) end