[Groonga-commit] groonga/fluent-plugin-droonga [master] Just pass a query to searcher

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Apr 9 18:03:18 JST 2013


Kouhei Sutou	2013-04-09 18:03:18 +0900 (Tue, 09 Apr 2013)

  New Revision: 982674f79f857058a8405b3e887a151b1bb311f8
  https://github.com/groonga/fluent-plugin-droonga/commit/982674f79f857058a8405b3e887a151b1bb311f8

  Message:
    Just pass a query to searcher
    
    Qeueries aren't needed.

  Modified files:
    lib/droonga/plugin/handler_search.rb

  Modified: lib/droonga/plugin/handler_search.rb (+4 -5)
===================================================================
--- lib/droonga/plugin/handler_search.rb    2013-04-09 18:01:09 +0900 (9027f1c)
+++ lib/droonga/plugin/handler_search.rb    2013-04-09 18:03:18 +0900 (9b593d0)
@@ -49,7 +49,7 @@ module Droonga
       query_sorter.tsort.each do |name|
         if queries[name]
           searcher = QuerySearcher.new(@context, name)
-          searcher.search(queries, results, outputs)
+          searcher.search(queries[name], results, outputs)
         elsif @context[name]
           results[name] = @context[name]
         else
@@ -86,8 +86,8 @@ module Droonga
         @name = name
       end
 
-      def search(queries, results, outputs)
-        search_query(@name, queries, results, outputs)
+      def search(query, results, outputs)
+        search_query(@name, query, results, outputs)
       end
 
        def parseCondition(source, expression, condition)
@@ -165,9 +165,8 @@ module Droonga
         end
       end
 
-      def search_query(name, queries, results, outputs)
+      def search_query(name, query, results, outputs)
         start_time = Time.now
-        query = queries[name]
         result = source = results[query["source"]]
         if query["condition"]
           expression = Groonga::Expression.new(context: @context)
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index