Masafumi Yokoyama
null+****@clear*****
Tue Dec 6 17:15:11 JST 2016
Masafumi Yokoyama 2016-12-06 17:15:11 +0900 (Tue, 06 Dec 2016) New Revision: 9bbc82bcc28d02d5c57a955e8f7e405147fd7c70 https://github.com/ranguba/groonga-client/commit/9bbc82bcc28d02d5c57a955e8f7e405147fd7c70 Message: Order methods Modified files: lib/groonga/client/response/select.rb Modified: lib/groonga/client/response/select.rb (+9 -9) =================================================================== --- lib/groonga/client/response/select.rb 2016-12-06 17:09:54 +0900 (ddadd28) +++ lib/groonga/client/response/select.rb 2016-12-06 17:15:11 +0900 (98f4d18) @@ -142,15 +142,6 @@ module Groonga end end - def parse_slices_v1(raw_slices) - slices = {} - (raw_slices || {}).each do |key, slice_body| - n_hits, body = parse_match_records_v1(slice_body) - slices[key] = body - end - slices - end - def parse_drilldowns_v3(raw_drilldowns) drilldowns = {} (raw_drilldowns || {}).each do |key, raw_drilldown| @@ -160,6 +151,15 @@ module Groonga drilldowns end + def parse_slices_v1(raw_slices) + slices = {} + (raw_slices || {}).each do |key, slice_body| + n_hits, body = parse_match_records_v1(slice_body) + slices[key] = body + end + slices + end + def parse_slices_v3(raw_slices) slices = {} (raw_slices || {}).each do |key, records| -------------- next part -------------- HTML����������������������������... Télécharger