Class: Droonga::Plugins::Search::GatherCollector
- Defined in:
- lib/droonga/plugins/search.rb
Instance Method Summary collapse
Methods inherited from Collector
Methods included from Droonga::Pluggable
Constructor Details
This class inherits a constructor from Droonga::Collector
Instance Method Details
#collect(message) ⇒ Object
49 50 51 52 53 54 55 56 57 58 |
# File 'lib/droonga/plugins/search.rb', line 49 def collect() output = .input || .name if output.is_a?(Hash) collect_elements(, output["elements"]) output_name = output["output"] else output_name = output end .values[output_name] = .value end |