[Groonga-commit] droonga/fluent-plugin-droonga at e194cfb [master] Use camelCase for query parameters of the "search" command

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Nov 14 13:25:50 JST 2013


YUKI Hiroshi	2013-11-14 13:25:50 +0900 (Thu, 14 Nov 2013)

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

  Message:
    Use camelCase for query parameters of the "search" command

  Modified files:
    lib/droonga/searcher.rb

  Modified: lib/droonga/searcher.rb (+5 -5)
===================================================================
--- lib/droonga/searcher.rb    2013-11-13 14:01:37 +0900 (f35ec04)
+++ lib/droonga/searcher.rb    2013-11-14 13:25:50 +0900 (6167c6c)
@@ -159,8 +159,8 @@ module Droonga
           end
           if condition["query"]
             options[:syntax] = :query
-            if condition["default_operator"]
-              case condition["default_operator"]
+            if condition["defaultOperator"]
+              case condition["defaultOperator"]
               when "||"
                 options[:default_operator] = Groonga::Operator::OR
               when "&&"
@@ -171,17 +171,17 @@ module Droonga
                 raise "undefined operator assigned #{condition["default_operator"]}"
               end
             end
-            if condition["allow_pragma"]
+            if condition["allowPragma"]
               options[:allow_pragma] = true
             end
-            if condition["allow_column"]
+            if condition["allowColumn"]
               options[:allow_column] = true
             end
             expression.parse(condition["query"], options)
           elsif condition["script"]
             # "script" is ignored when "query" is also assigned.
             options[:syntax] = :script
-            if condition["allow_update"]
+            if condition["allowUpdate"]
               options[:allow_update] = true
             end
             expression.parse(condition["script"], options)
-------------- next part --------------
HTML����������������������������...
Download 



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