YUKI Hiroshi
null+****@clear*****
Fri Dec 6 11:02:54 JST 2013
YUKI Hiroshi 2013-12-06 11:02:54 +0900 (Fri, 06 Dec 2013) New Revision: bd5a8ae5e30394088e5af8eea8c3bd5b77d9bb38 https://github.com/droonga/fluent-plugin-droonga/commit/bd5a8ae5e30394088e5af8eea8c3bd5b77d9bb38 Message: Simplify Modified files: lib/droonga/plugin/distributor/distributed_search_plan.rb Modified: lib/droonga/plugin/distributor/distributed_search_plan.rb (+1 -3) =================================================================== --- lib/droonga/plugin/distributor/distributed_search_plan.rb 2013-12-06 10:23:34 +0900 (39734cf) +++ lib/droonga/plugin/distributor/distributed_search_plan.rb 2013-12-06 11:02:54 +0900 (6d1bf22) @@ -242,9 +242,7 @@ module Droonga "type" => "sum", } if unifiable? - if @query["sortBy"] && @query["sortBy"].is_a?(Hash) - @query["sortBy"]["limit"] = -1 - end + @query["sortBy"]["limit"] = -1 if @query["sortBy"].is_a?(Hash) @output["limit"] = -1 mapper = { "type" => "count", -------------- next part -------------- HTML����������������������������... Download