[Groonga-commit] droonga/droonga-engine at 56b7499 [master] Add methods to modify tags

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Jun 26 13:50:17 JST 2014


YUKI Hiroshi	2014-06-26 13:50:17 +0900 (Thu, 26 Jun 2014)

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

  Message:
    Add methods to modify tags

  Modified files:
    lib/droonga/serf.rb

  Modified: lib/droonga/serf.rb (+10 -0)
===================================================================
--- lib/droonga/serf.rb    2014-06-26 12:08:17 +0900 (5354085)
+++ lib/droonga/serf.rb    2014-06-26 13:50:17 +0900 (31b6e87)
@@ -67,6 +67,16 @@ module Droonga
       logger.trace("shutdown: done")
     end
 
+    def set_tag(key, value)
+      logger.trace("set_tag (#{key} = #{value})")
+      run("tags", "-set", "#{key}=#{value}")
+    end
+
+    def delete_tag(key)
+      logger.trace("delete_tag (#{key})")
+      run("tags", "-delete", key)
+    end
+
     private
     def ensure_serf
       @serf = find_system_serf
-------------- next part --------------
HTML����������������������������...
Download 



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