Kouhei Sutou
null+****@clear*****
Wed Nov 5 17:42:27 JST 2014
Kouhei Sutou 2014-11-05 17:42:27 +0900 (Wed, 05 Nov 2014) New Revision: 79b4267f3fd7e1e8424af9eef362b13e475be7e3 https://github.com/groonga/fluent-plugin-groonga/commit/79b4267f3fd7e1e8424af9eef362b13e475be7e3 Message: out: add WITH_POSITION when default tokenizer is used Modified files: lib/fluent/plugin/out_groonga.rb Modified: lib/fluent/plugin/out_groonga.rb (+1 -5) =================================================================== --- lib/fluent/plugin/out_groonga.rb 2014-11-05 15:55:43 +0900 (6b195f2) +++ lib/fluent/plugin/out_groonga.rb 2014-11-05 17:42:27 +0900 (d16f3c2) @@ -157,10 +157,6 @@ module Fluent end end - def use_n_gram_tokenizer? - /\AToken(?:Uni|Bi|Tri)gram/ === default_tokenizer.to_s - end - def have_difference?(table) return true if table.name != name @@ -233,7 +229,7 @@ module Fluent def flags _flags = ["COLUMN_INDEX"] - _flags << "WITH_POSITION" if****@table*****_n_gram_tokenizer? + _flags << "WITH_POSITION" if****@table*****_tokenizer _flags << "WITH_SECTION" if source_columns.size >= 2 _flags end -------------- next part -------------- HTML����������������������������... Télécharger