Yasuhiro Horimoto
null+****@clear*****
Tue Aug 14 10:38:13 JST 2018
Yasuhiro Horimoto 2018-08-14 10:38:13 +0900 (Tue, 14 Aug 2018) New Revision: 388fb232422070caf1523da11241e04b5aa3c743 https://github.com/groonga/groonga/commit/388fb232422070caf1523da11241e04b5aa3c743 Merged 4544544: Merge pull request #862 from komainu8/add_test_for_online_index Message: test: add a test for an online index that lexcon tyepe is hash table Added files: test/command/suite/load/index/online/vector/full_text_hash.expected test/command/suite/load/index/online/vector/full_text_hash.test Added: test/command/suite/load/index/online/vector/full_text_hash.expected (+47 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/load/index/online/vector/full_text_hash.expected 2018-08-14 10:38:13 +0900 (8b0da16e1) @@ -0,0 +1,47 @@ +table_create Users TABLE_NO_KEY +[[0,0.0,0.0],true] +column_create Users name COLUMN_VECTOR ShortText +[[0,0.0,0.0],true] +table_create Words TABLE_HASH_KEY --key_type ShortText --default_tokenizer TokenBigramSplitSymbolAlpha +[[0,0.0,0.0],true] +column_create Words users_name COLUMN_INDEX|WITH_POSITION|WITH_SECTION Users name +[[0,0.0,0.0],true] +load --table Users +[ +["name"], +[["Alice", "Bob"]], +[["Bob"]] +] +[[0,0.0,0.0],2] +select Users --match_columns "Words.users_name[1]" --query Bob +[ + [ + 0, + 0.0, + 0.0 + ], + [ + [ + [ + 1 + ], + [ + [ + "_id", + "UInt32" + ], + [ + "name", + "ShortText" + ] + ], + [ + 1, + [ + "Alice", + "Bob" + ] + ] + ] + ] +] Added: test/command/suite/load/index/online/vector/full_text_hash.test (+15 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/load/index/online/vector/full_text_hash.test 2018-08-14 10:38:13 +0900 (8d2eb3fc8) @@ -0,0 +1,15 @@ +table_create Users TABLE_NO_KEY +column_create Users name COLUMN_VECTOR ShortText + +table_create Words TABLE_HASH_KEY --key_type ShortText \ + --default_tokenizer TokenBigramSplitSymbolAlpha +column_create Words users_name COLUMN_INDEX|WITH_POSITION|WITH_SECTION Users name + +load --table Users +[ +["name"], +[["Alice", "Bob"]], +[["Bob"]] +] + +select Users --match_columns "Words.users_name[1]" --query Bob -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180814/b6f4b119/attachment-0001.htm