Masafumi Yokoyama
null+****@clear*****
Wed Jan 6 19:12:31 JST 2016
Masafumi Yokoyama 2016-01-06 19:12:31 +0900 (Wed, 06 Jan 2016) New Revision: 1a32207b5f14838404051aecb41111fb31517cdd https://github.com/ranguba/rroonga/commit/1a32207b5f14838404051aecb41111fb31517cdd Message: Update example to show difference with Groonga::Table#reindex Modified files: ext/groonga/rb-grn-database.c Modified: ext/groonga/rb-grn-database.c (+15 -4) =================================================================== --- ext/groonga/rb-grn-database.c 2016-01-06 18:59:27 +0900 (4b3ac79) +++ ext/groonga/rb-grn-database.c 2016-01-06 19:12:31 +0900 (dd0aec9) @@ -647,7 +647,7 @@ rb_grn_database_unmap (VALUE self) * table.text("content") * end * - * schema.create_table("Terms", + * schema.create_table("BigramTerms", * :type => :patricia_trie, * :key_type => :short_text, * :normalizer => "NormalizerAuto", @@ -655,12 +655,23 @@ rb_grn_database_unmap (VALUE self) * 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 * * database.reindex - * # => - * # Groonga["Terms.Memos_title"].reindex - * # Groonga["Terms.Memos_content"].reindex + * # They are called: + * # Groonga["BigramTerms.Memos_title"].reindex + * # Groonga["BigramTerms.Memos_content"].reindex + * # Groonga["MeCabTerms.Memos_title"].reindex + * # Groonga["MeCabTerms.Memos_content"].reindex * * @overload reindex * @return [void] -------------- next part -------------- HTML����������������������������...Download