[Groonga-commit] droonga/fluent-plugin-droonga at 20ca4c2 [master] Output "attributes" element (but it is not implemented)

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Sep 25 19:18:29 JST 2013


YUKI Hiroshi	2013-09-25 19:18:29 +0900 (Wed, 25 Sep 2013)

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

  Message:
    Output "attributes" element (but it is not implemented)

  Modified files:
    lib/droonga/searcher.rb

  Modified: lib/droonga/searcher.rb (+7 -0)
===================================================================
--- lib/droonga/searcher.rb    2013-09-19 20:31:03 +0900 (c1fd5fc)
+++ lib/droonga/searcher.rb    2013-09-25 19:18:29 +0900 (3d8c2ac)
@@ -108,6 +108,7 @@ module Droonga
       def format
         formatted_result = {}
         format_count(formatted_result)
+        format_attributes(formatted_result)
         format_records(formatted_result)
         if need_element_output?("startTime")
           formatted_result["startTime"] = @start_time.iso8601
@@ -249,6 +250,12 @@ module Droonga
         formatted_result["count"] = @count
       end
 
+      def format_attributes(formatted_result)
+        return unless need_element_output?("attributes")
+        # XXX IMPLEMENT ME!!!
+        formatted_result["attributes"] = []
+      end
+
       def format_records(formatted_result)
         return unless need_element_output?("records")
 
-------------- next part --------------
HTML����������������������������...
Download 



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