Class: Droonga::SearchHandler
- Inherits:
-
HandlerPlugin
- Object
- Plugin
- HandlerPlugin
- Droonga::SearchHandler
- Defined in:
- lib/droonga/plugin/handler/search.rb
Instance Method Summary collapse
Methods inherited from HandlerPlugin
#initialize, #prefer_synchronous?
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::HandlerPlugin
Instance Method Details
#search(message, messenger) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/droonga/plugin/handler/search.rb', line 26 def search(, messenger) searcher = Droonga::Searcher.new(@context) values = {} searcher.search(.request["queries"]).each do |output, value| values[output] = value end messenger.emit(values) end |