[Groonga-commit] droonga/fluent-plugin-droonga at c163110 [master] Output attributes as a hsah for "complex" format

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Sep 25 19:22:09 JST 2013


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

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

  Message:
    Output attributes as a hsah for "complex" format

  Modified files:
    lib/droonga/searcher.rb

  Modified: lib/droonga/searcher.rb (+9 -1)
===================================================================
--- lib/droonga/searcher.rb    2013-09-25 19:18:29 +0900 (3d8c2ac)
+++ lib/droonga/searcher.rb    2013-09-25 19:22:09 +0900 (1a46b2e)
@@ -252,8 +252,16 @@ module Droonga
 
       def format_attributes(formatted_result)
         return unless need_element_output?("attributes")
+
         # XXX IMPLEMENT ME!!!
-        formatted_result["attributes"] = []
+        attributes = nil
+        if @query["output"]["format"] == "complex"
+          attributes = {}
+        else
+          attributes = []
+        end
+
+        formatted_result["attributes"] = attributes
       end
 
       def format_records(formatted_result)
-------------- next part --------------
HTML����������������������������...
Download 



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