Masafumi Yokoyama
null+****@clear*****
Wed Jan 6 19:29:40 JST 2016
Masafumi Yokoyama 2016-01-06 19:29:40 +0900 (Wed, 06 Jan 2016) New Revision: 2f432128e3e05d97992a29d0878e15f480fa9db6 https://github.com/ranguba/rroonga/commit/2f432128e3e05d97992a29d0878e15f480fa9db6 Message: Update example to show difference with Groonga::Database#reinex Modified files: ext/groonga/rb-grn-table.c Modified: ext/groonga/rb-grn-table.c (+18 -5) =================================================================== --- ext/groonga/rb-grn-table.c 2016-01-06 19:16:58 +0900 (61ab52f) +++ ext/groonga/rb-grn-table.c 2016-01-06 19:29:40 +0900 (5393755) @@ -2693,7 +2693,7 @@ rb_grn_table_rename (VALUE self, VALUE rb_name) * table.text("content") * end * - * schema.create_table("Terms", + * schema.create_table("BigramTerms", * :type => :patricia_trie, * :key_type => :short_text, * :normalizer => "NormalizerAuto", @@ -2701,12 +2701,25 @@ rb_grn_table_rename (VALUE self, VALUE rb_name) * table.index("Memos.title") * table.index("Memos.content") * end + * + * schema.create_table("MeCabTerms", + * :type => :patricia_trie, + * :key_type => :short_text, + * :normalizer => "NormalizerAuto", + * :default_tokenizer => "TokenMecab") do |table| + * table.index("Memos.title") + * table.index("Memos.content") + * end * end * - * Groonga["Terms"].reindex - * # => - * # Groonga["Terms.Memos_title"].reindex - * # Groonga["Terms.Memos_content"].reindex + * Groonga["BigramTerms"].reindex + * # They are called: + * # Groonga["BigramTerms.Memos_title"].reindex + * # Groonga["BigramTerms.Memos_content"].reindex + * # + * # They aren't called: + * # Groonga["MeCabTerms.Memos_title"].reindex + * # Groonga["MeCabTerms.Memos_content"].reindex * * @overload reindex * @return [void] -------------- next part -------------- HTML����������������������������...Download