[Groonga-mysql-commit] mroonga/mroonga at 12f1b01 [master] test: follow FT_SORT flag support

Back to archive index

Kouhei Sutou null+****@clear*****
Sat May 16 23:17:24 JST 2015


Kouhei Sutou	2015-05-16 23:17:24 +0900 (Sat, 16 May 2015)

  New Revision: 12f1b01f296466df6910de1e31cf86557cb6cf92
  https://github.com/mroonga/mroonga/commit/12f1b01f296466df6910de1e31cf86557cb6cf92

  Message:
    test: follow FT_SORT flag support

  Modified files:
    mysql-test/mroonga/storage/fulltext/parser/r/default.result
    mysql-test/mroonga/storage/fulltext/parser/t/default.test

  Modified: mysql-test/mroonga/storage/fulltext/parser/r/default.result (+12 -12)
===================================================================
--- mysql-test/mroonga/storage/fulltext/parser/r/default.result    2015-05-16 23:15:03 +0900 (6c04cae)
+++ mysql-test/mroonga/storage/fulltext/parser/r/default.result    2015-05-16 23:17:24 +0900 (a18614d)
@@ -14,20 +14,20 @@ diaries	CREATE TABLE `diaries` (
   PRIMARY KEY (`id`),
   FULLTEXT KEY `body_index` (`body`)
 ) ENGINE=Mroonga DEFAULT CHARSET=utf8
-insert into diaries (body) values ("will start groonga!");
-insert into diaries (body) values ("starting groonga...");
-insert into diaries (body) values ("started groonga.");
-insert into diaries (body) values ("finished groonga.");
+insert into diaries (body) values ("will start Groonga!");
+insert into diaries (body) values ("starting Groonga...");
+insert into diaries (body) values ("started Groonga.");
+insert into diaries (body) values ("finished Groonga.");
 select * from diaries;
 id	body
-1	will start groonga!
-2	starting groonga...
-3	started groonga.
-4	finished groonga.
-select * from diaries where match(body) against("start");
+1	will start Groonga!
+2	starting Groonga...
+3	started Groonga.
+4	finished Groonga.
+select * from diaries where match(body) against("+start" IN BOOLEAN MODE) order by id;
 id	body
-1	will start groonga!
-2	starting groonga...
-3	started groonga.
+1	will start Groonga!
+2	starting Groonga...
+3	started Groonga.
 drop table diaries;
 set global mroonga_default_parser=@mroonga_default_parser_backup;

  Modified: mysql-test/mroonga/storage/fulltext/parser/t/default.test (+6 -6)
===================================================================
--- mysql-test/mroonga/storage/fulltext/parser/t/default.test    2015-05-16 23:15:03 +0900 (c0ab5d1)
+++ mysql-test/mroonga/storage/fulltext/parser/t/default.test    2015-05-16 23:17:24 +0900 (1731b4c)
@@ -1,4 +1,4 @@
-# Copyright(C) 2011 Kouhei Sutou <kou �� clear-code.com>
+# Copyright(C) 2011-2015 Kouhei Sutou <kou �� clear-code.com>
 # Copyright(C) 2014 Kentoku SHIBA
 #
 # This library is free software; you can redistribute it and/or
@@ -29,12 +29,12 @@ create table diaries (
   fulltext index body_index (body)
 ) default charset utf8;
 show create table diaries;
-insert into diaries (body) values ("will start groonga!");
-insert into diaries (body) values ("starting groonga...");
-insert into diaries (body) values ("started groonga.");
-insert into diaries (body) values ("finished groonga.");
+insert into diaries (body) values ("will start Groonga!");
+insert into diaries (body) values ("starting Groonga...");
+insert into diaries (body) values ("started Groonga.");
+insert into diaries (body) values ("finished Groonga.");
 select * from diaries;
-select * from diaries where match(body) against("start");
+select * from diaries where match(body) against("+start" IN BOOLEAN MODE) order by id;
 drop table diaries;
 set global mroonga_default_parser=@mroonga_default_parser_backup;
 
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-mysql-commit mailing list
Back to archive index