Class: Droonga::Plugins::Search::Handler
- Defined in:
- lib/droonga/plugins/search.rb
Instance Attribute Summary
Attributes inherited from Handler
Instance Method Summary collapse
Methods inherited from Handler
Methods included from Droonga::Pluggable
Constructor Details
This class inherits a constructor from Droonga::Handler
Instance Method Details
#handle(message) ⇒ Object
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/droonga/plugins/search.rb', line 34 def handle() searcher = Droonga::Searcher.new(@context) values = {} request = .request raise Droonga::Searcher::NoQuery.new unless request searcher.search(request["queries"]).each do |output, value| values[output] = value end values end |