YUKI Hiroshi
null+****@clear*****
Wed Nov 27 18:34:06 JST 2013
YUKI Hiroshi 2013-11-27 18:34:06 +0900 (Wed, 27 Nov 2013) New Revision: 8c93317ca2dd5cbfdabd722f75f2ef0cf436ec46 https://github.com/droonga/fluent-plugin-droonga/commit/8c93317ca2dd5cbfdabd722f75f2ef0cf436ec46 Message: Stringify value of reference columns for a search result Modified files: lib/droonga/searcher.rb Modified: lib/droonga/searcher.rb (+6 -1) =================================================================== --- lib/droonga/searcher.rb 2013-11-27 18:33:13 +0900 (e21ef3c) +++ lib/droonga/searcher.rb 2013-11-27 18:34:06 +0900 (f08674e) @@ -360,7 +360,12 @@ module Droonga variable.value = record expression.execute else - record[attribute[:source]] + value = record[attribute[:source]] + if value.is_a?(Groonga::Record) + value["_key"] + else + value + end end end end -------------- next part -------------- HTML����������������������������...Download