[Groonga-commit] groonga/groonga [master] [test][plugin] remove needless fulltext search.

Back to archive index

null+****@clear***** null+****@clear*****
2011年 5月 15日 (日) 23:47:48 JST


Kouhei Sutou	2011-05-15 14:47:48 +0000 (Sun, 15 May 2011)

  New Revision: 356e4dd787ff8d545c5973111201c513e9c74d48

  Log:
    [test][plugin] remove needless fulltext search.

  Modified files:
    test/unit/core/test-plugin.c

  Modified: test/unit/core/test-plugin.c (+1 -7)
===================================================================
--- test/unit/core/test-plugin.c    2011-05-15 12:58:41 +0000 (ebc490d)
+++ test/unit/core/test-plugin.c    2011-05-15 14:47:48 +0000 (a428312)
@@ -109,17 +109,11 @@ test_register_function(void)
 {
   assert_send_command("register string");
   assert_send_command("table_create Sites TABLE_HASH_KEY ShortText");
-  assert_send_command("table_create Terms "
-                      "TABLE_PAT_KEY|KEY_NORMALIZE ShortText " \
-                      "--default_tokenizer TokenBigram");
-  assert_send_command("column_create Terms Sites_key "
-                      "COLUMN_INDEX|WITH_POSITION Sites _key");
   assert_send_command("load '[[\"_key\"],[\"groonga.org\"]]' Sites");
   cut_assert_equal_string("[[[1],[[\"_score\",\"Int32\"]],[11]]]",
                           send_command("select Sites "
                                        "--output_columns _score "
-                                       "--match_columns _key "
-                                       "--query groonga "
+                                       "--filter true "
                                        "--scorer '_score=str_len(_key)'"));
 }
 




Groonga-commit メーリングリストの案内
Back to archive index