[Groonga-commit] droonga/fluent-plugin-droonga at 9ee88ed [master] Use search collector

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Jan 24 15:14:23 JST 2014


YUKI Hiroshi	2014-01-24 15:14:23 +0900 (Fri, 24 Jan 2014)

  New Revision: 9ee88ed5057a216675e113507fb1318b638f16b7
  https://github.com/droonga/fluent-plugin-droonga/commit/9ee88ed5057a216675e113507fb1318b638f16b7

  Message:
    Use search collector

  Modified files:
    lib/droonga/plugin/collector/search.rb
    lib/droonga/plugin/distributor/distributed_search_planner.rb

  Modified: lib/droonga/plugin/collector/search.rb (+4 -4)
===================================================================
--- lib/droonga/plugin/collector/search.rb    2014-01-24 15:11:52 +0900 (a35b350)
+++ lib/droonga/plugin/collector/search.rb    2014-01-24 15:14:23 +0900 (34413a2)
@@ -23,8 +23,8 @@ module Droonga
 
     UNLIMITED = -1.freeze
 
-    command :collector_gather
-    def collector_gather(result)
+    command :collector_search_gather
+    def collector_search_gather(result)
       output = body ? body[input_name] : input_name
       if output.is_a?(Hash)
         elements = output["elements"]
@@ -99,8 +99,8 @@ module Droonga
       items
     end
 
-    command :collector_reduce
-    def collector_reduce(request)
+    command :collector_search_reduce
+    def collector_search_reduce(request)
       return unless request
       body[input_name].each do |output, elements|
         value = request

  Modified: lib/droonga/plugin/distributor/distributed_search_planner.rb (+2 -2)
===================================================================
--- lib/droonga/plugin/distributor/distributed_search_planner.rb    2014-01-24 15:11:52 +0900 (f1c29fa)
+++ lib/droonga/plugin/distributor/distributed_search_planner.rb    2014-01-24 15:14:23 +0900 (878d3ea)
@@ -45,7 +45,7 @@ module Droonga
       end
 
       gatherer = {
-        "type" => "gather",
+        "type" => "search_gather",
         "body" => @output_mappers,
         "inputs" => @output_names, # XXX should be placed in the "body"?
         "post" => true, # XXX should be placed in the "body"?
@@ -96,7 +96,7 @@ module Droonga
       transformer = QueryTransformer.new(query)
 
       reducer = {
-        "type" => "reduce",
+        "type" => "search_reduce",
         "body" => {
           input_name => {
             output_name => transformer.reducers,
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index