Kouhei Sutou
null+****@clear*****
Thu Oct 31 12:36:41 JST 2013
Kouhei Sutou 2013-10-31 12:36:41 +0900 (Thu, 31 Oct 2013) New Revision: 60494d89b2f335d5ddbdcbbbad4cdc7dfb95889e https://github.com/droonga/fluent-plugin-droonga/commit/60494d89b2f335d5ddbdcbbbad4cdc7dfb95889e Message: Show select condition Modified files: lib/droonga/searcher.rb Modified: lib/droonga/searcher.rb (+5 -3) =================================================================== --- lib/droonga/searcher.rb 2013-10-31 12:32:52 +0900 (6775172) +++ lib/droonga/searcher.rb 2013-10-31 12:36:41 +0900 (f35ec04) @@ -225,11 +225,13 @@ module Droonga $log.trace("#{log_tag}: search_query: start") @start_time = Time.now @result = source = results[@query["source"]] - if @query["condition"] + condition = @query["condition"] + if condition expression = Groonga::Expression.new(context: @context) expression.define_variable(:domain => source) - parseCondition(source, expression, @query["condition"]) - $log.trace("#{log_tag}: search_query: select: start") + parseCondition(source, expression, condition) + $log.trace("#{log_tag}: search_query: select: start", + :condition => condition) @result = source.select(expression) $log.trace("#{log_tag}: search_query: select: done") @condition = expression -------------- next part -------------- HTML����������������������������... Download