Daijiro MORI
null+****@clear*****
Sun Apr 21 18:36:16 JST 2013
Daijiro MORI 2013-04-21 18:36:16 +0900 (Sun, 21 Apr 2013) New Revision: 8a80f131f7e4ede26e385879d6097fc34014a7f9 https://github.com/groonga/fluent-plugin-droonga/commit/8a80f131f7e4ede26e385879d6097fc34014a7f9 Message: Fix a bug returning wrong count value. Modified files: lib/droonga/plugin/handler_search.rb Modified: lib/droonga/plugin/handler_search.rb (+2 -1) =================================================================== --- lib/droonga/plugin/handler_search.rb 2013-04-19 18:25:23 +0900 (658c4cb) +++ lib/droonga/plugin/handler_search.rb 2013-04-21 18:36:16 +0900 (4bd057b) @@ -199,6 +199,7 @@ module Droonga if @query["groupBy"] @result =****@resul*****(@query["groupBy"]) end + @count =****@resul***** if @query["sortBy"] if @query["sortBy"].is_a? Array keys = parseOrderKeys(@query["sortBy"]) @@ -218,7 +219,7 @@ module Droonga def format_count(params, formatted_result) return unless params["count"] - formatted_result["count"] =****@resul***** + formatted_result["count"] = @count end def format_records(params, formatted_result) -------------- next part -------------- HTML����������������������������...Download