[Groonga-commit] droonga/fluent-plugin-droonga at 9d6be9f [master] Use Groonga::Record#record_id to support Groonga::Array

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Nov 27 19:11:50 JST 2013


Kouhei Sutou	2013-11-27 19:11:50 +0900 (Wed, 27 Nov 2013)

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

  Message:
    Use Groonga::Record#record_id to support Groonga::Array
    
    If the record is for Groonga::Array, it doesn't have _key. #record_id
    returns the record ID for Groonga::Array, the record key for other
    tables.
    
    We should write a test for the case!!!

  Modified files:
    lib/droonga/searcher.rb

  Modified: lib/droonga/searcher.rb (+1 -1)
===================================================================
--- lib/droonga/searcher.rb    2013-11-27 19:02:20 +0900 (2b71e87)
+++ lib/droonga/searcher.rb    2013-11-27 19:11:50 +0900 (78aade6)
@@ -366,7 +366,7 @@ module Droonga
           else
             value = record[attribute[:source]]
             if value.is_a?(Groonga::Record)
-              value["_key"]
+              value.record_id
             else
               value
             end
-------------- next part --------------
HTML����������������������������...
Download 



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