Yoji Shidara
null+****@clear*****
Tue Feb 18 16:29:10 JST 2014
Yoji Shidara 2014-02-18 16:29:10 +0900 (Tue, 18 Feb 2014) New Revision: e296e6b82a99ebcadfbeb972e1c5ad521ef46c7f https://github.com/droonga/fluent-plugin-droonga/commit/e296e6b82a99ebcadfbeb972e1c5ad521ef46c7f Message: schema: merge flags from ColumnIndexOptions Modified files: lib/droonga/catalog/schema.rb Modified: lib/droonga/catalog/schema.rb (+9 -1) =================================================================== --- lib/droonga/catalog/schema.rb 2014-02-18 16:24:35 +0900 (f80df28) +++ lib/droonga/catalog/schema.rb 2014-02-18 16:29:10 +0900 (c5aedfe) @@ -36,6 +36,14 @@ module Droonga def sources @data["sources"] end + + def flags + flags = [] + flags << "WITH_SECTION" if section + flags << "WITH_WEIGHT" if weight + flags << "WITH_POSITION" if position + flags + end end class Column @@ -70,7 +78,7 @@ module Droonga end def flags - [type_flag] # TODO merge flags from ColumnIndexOptions + [type_flag] + index_options.flags end def value_type -------------- next part -------------- HTML����������������������������... ダウンロード