Class: Droonga::SearchDistributor

Inherits:
DistributorPlugin show all
Defined in:
lib/droonga/plugin/distributor/search.rb

Instance Method Summary collapse

Methods inherited from DistributorPlugin

#broadcast_all, #distribute, #initialize, #scatter_all

Methods included from PluginRegisterable

#command, extended, #inherited, #method_name, #processable?, #repository

Methods inherited from Plugin

#initialize, #process, #processable?, #shutdown, #start

Constructor Details

This class inherits a constructor from Droonga::DistributorPlugin

Instance Method Details

#search(message) ⇒ Object



26
27
28
29
# File 'lib/droonga/plugin/distributor/search.rb', line 26

def search(message)
  planner = DistributedSearchPlanner.new(message)
  distribute(planner.messages)
end