[Groonga-commit] droonga/droonga-engine at f817911 [master] Add missing instance methods to modify tags

アーカイブの一覧に戻る

YUKI Hiroshi null+****@clear*****
Wed Jul 23 16:14:48 JST 2014


YUKI Hiroshi	2014-07-23 16:14:48 +0900 (Wed, 23 Jul 2014)

  New Revision: f8179117376822a7a46e2ad32a2e85b329644cc1
  https://github.com/droonga/droonga-engine/commit/f8179117376822a7a46e2ad32a2e85b329644cc1

  Message:
    Add missing instance methods to modify tags

  Modified files:
    lib/droonga/serf.rb

  Modified: lib/droonga/serf.rb (+10 -0)
===================================================================
--- lib/droonga/serf.rb    2014-07-23 16:10:39 +0900 (e9f006f)
+++ lib/droonga/serf.rb    2014-07-23 16:14:48 +0900 (e8e0e99)
@@ -138,6 +138,16 @@ module Droonga
       run_once("query", *options)
     end
 
+    def set_tag(name, value="")
+      ensure_serf
+      run_once("tags", "-set", "#{name}=#{value}")
+    end
+
+    def delete_tag(name)
+      ensure_serf
+      run_once("tags", "-delete", name)
+    end
+
     def live_nodes
       ensure_serf
       nodes = {}
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る