[Groonga-commit] groonga/fluent-plugin-droonga at e066579 [master] Accept "matchTo" option given as an array

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Apr 18 18:33:08 JST 2013


YUKI Hiroshi	2013-04-18 18:33:08 +0900 (Thu, 18 Apr 2013)

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

  Message:
    Accept "matchTo" option given as an array

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

  Modified: lib/droonga/plugin/handler_search.rb (+3 -1)
===================================================================
--- lib/droonga/plugin/handler_search.rb    2013-04-17 23:35:33 +0900 (3ee5f17)
+++ lib/droonga/plugin/handler_search.rb    2013-04-18 18:33:08 +0900 (29427d0)
@@ -118,7 +118,9 @@ module Droonga
           if condition["matchTo"]
             matchTo = Groonga::Expression.new(context: @context)
             matchTo.define_variable(:domain => source)
-            matchTo.parse(condition["matchTo"], :syntax => :script)
+            match_columns = condition["matchTo"]
+            match_columns = match_columns.join(",") if match_columns.is_a?(Array)
+            matchTo.parse(match_columns, :syntax => :script)
             options[:default_column] = matchTo
           end
           if condition["query"]
-------------- next part --------------
HTML����������������������������...
Download 



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