YUKI Hiroshi
null+****@clear*****
Wed May 29 13:39:12 JST 2013
YUKI Hiroshi 2013-05-29 13:39:12 +0900 (Wed, 29 May 2013) New Revision: ba8529d17a234b042dcd982bcdd97ed732114d4a https://github.com/groonga/fluent-plugin-droonga/commit/ba8529d17a234b042dcd982bcdd97ed732114d4a Message: Use static value if it is given Modified files: lib/droonga/plugin/handler_search.rb Modified: lib/droonga/plugin/handler_search.rb (+2 -2) =================================================================== --- lib/droonga/plugin/handler_search.rb 2013-05-29 13:35:28 +0900 (53757f8) +++ lib/droonga/plugin/handler_search.rb 2013-05-29 13:39:12 +0900 (efc63ae) @@ -257,14 +257,14 @@ module Droonga def complex_record(attributes, record) values = {} attributes.collect do |attribute| - values[attribute[:label]] = record[attribute[:source]] + values[attribute[:label]] = attributes[:static_value] || record[attribute[:source]] end values end def simple_record(attributes, record) attributes.collect do |attribute| - record[attribute[:source]] + record[attributes[:static_value] || attribute[:source]] end end -------------- next part -------------- HTML����������������������������...Download