Skip to content

Commit

Permalink
Decouple with SearchResult and QuerySearcher
Browse files Browse the repository at this point in the history
  • Loading branch information
darashi committed Dec 19, 2013
1 parent c66abf7 commit be41179
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/droonga/searcher.rb
Expand Up @@ -75,7 +75,8 @@ def process_queries(queries)
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
Expand Down Expand Up @@ -316,11 +317,6 @@ def need_output?
@result.records and @request.query.has_key?("output")
end

def format
formatter = ResultFormatter.new(@request, @result)
formatter.format
end

private
def parseCondition(source, expression, condition)
if condition.is_a? String
Expand Down

0 comments on commit be41179

Please sign in to comment.