molten-trunk/molten5_withgrid/vendor/plugins/acts_as_searchable/lib/drb_search_service.rb
# tee up a search query to the pooled Searchers.  Queries will be
# processed in the order in which they were received.
tee up a search query to the pooled Searchers.  Queries will be
processed in the order in which they were received.
tee up a search query to the pooled Searchers . Queries will be processed in the order in which they were received .
def search(klass, query, options = {})
      results = []
      thread = @executor.run do |searcher|
        results = searcher.search( klass.constantize, query, options )
      end
      thread.join
      results
    end
def search ( klass , query , options = { } ) results = [ ] thread = @executor . run do | searcher | results = searcher . search ( klass . constantize , query , options ) end thread . join results end
tee up a search query to the pooled Searchers.
tee up a search query to the pooled Searchers .
# this is slight abuse of PoolingExecutor, treating it only as a pool (DRb handles threading) # wait for the search to complete so results will contain results
klass
query
options