YUKI Hiroshi
null+****@clear*****
Thu Sep 12 15:01:11 JST 2013
YUKI Hiroshi 2013-09-12 15:01:11 +0900 (Thu, 12 Sep 2013) New Revision: 15bc9655c94aabb137ddfae1888fc7fa2204bbaf https://github.com/groonga/groonga-command/commit/15bc9655c94aabb137ddfae1888fc7fa2204bbaf Message: Support "--normalizer" option of the "table_create" command Modified files: lib/groonga/command/table-create.rb test/command/test-table-create.rb Modified: lib/groonga/command/table-create.rb (+1 -0) =================================================================== --- lib/groonga/command/table-create.rb 2013-07-23 17:12:53 +0900 (6566670) +++ lib/groonga/command/table-create.rb 2013-09-12 15:01:11 +0900 (7f9b9e7) @@ -31,6 +31,7 @@ module Groonga :key_type, :value_type, :default_tokenizer, + :normalizer, ] end end Modified: test/command/test-table-create.rb (+3 -1) =================================================================== --- test/command/test-table-create.rb 2013-07-23 17:12:53 +0900 (a6a6ee5) +++ test/command/test-table-create.rb 2013-09-12 15:01:11 +0900 (70df59d) @@ -26,8 +26,9 @@ class TableCreateCommandTest < Test::Unit::TestCase key_type = "ShortText" value_type = "UInt32" default_tokenizer = "TokenBigram" + normalizer = "NormalizerAuto" - command = parse([name, flags, key_type, value_type, default_tokenizer]) + command = parse([name, flags, key_type, value_type, default_tokenizer, normalizer]) assert_instance_of(Groonga::Command::TableCreate, command) assert_equal({ :name => name, @@ -35,6 +36,7 @@ class TableCreateCommandTest < Test::Unit::TestCase :key_type => key_type, :value_type => value_type, :default_tokenizer => default_tokenizer, + :normalizer => normalizer, }, command.arguments) end -------------- next part -------------- HTML����������������������������... 下载