Yoji Shidara
null+****@clear*****
Thu Dec 19 15:36:53 JST 2013
Yoji Shidara 2013-12-19 15:36:53 +0900 (Thu, 19 Dec 2013) New Revision: be41179c2938cb678f8d2188dd03a7ce617ac3e9 https://github.com/droonga/fluent-plugin-droonga/commit/be41179c2938cb678f8d2188dd03a7ce617ac3e9 Merged ce62e72: Merge branch 'refactor-searcher' Message: Decouple with SearchResult and QuerySearcher Modified files: lib/droonga/searcher.rb Modified: lib/droonga/searcher.rb (+2 -6) =================================================================== --- lib/droonga/searcher.rb 2013-12-19 15:25:51 +0900 (d3eca4b) +++ lib/droonga/searcher.rb 2013-12-19 15:36:53 +0900 (2647427) @@ -75,7 +75,8 @@ module Droonga if searcher.need_output? $log.trace("#{log_tag}: process_queries: format: start", :name => name) - outputs[name] = searcher.format + formatter = ResultFormatter.new(search_request, search_result) + outputs[name] = formatter.format $log.trace("#{log_tag}: process_queries: format: done", :name => name) end @@ -316,11 +317,6 @@ module Droonga @result.records and****@reque*****_key?("output") end - def format - formatter = ResultFormatter.new(@request, @result) - formatter.format - end - private def parseCondition(source, expression, condition) if condition.is_a? String -------------- next part -------------- HTML����������������������������... Download