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

Back to archive index

Kouhei Sutou null+****@clear*****
Sat May 16 23:35:13 JST 2015


Kouhei Sutou	2015-05-16 23:35:13 +0900 (Sat, 16 May 2015)

  New Revision: c7fbfda6395da642238461777fbf362ded11421f
  https://github.com/mroonga/mroonga/commit/c7fbfda6395da642238461777fbf362ded11421f

  Message:
    test: follow FT_SORT flag support

  Modified files:
    mysql-test/mroonga/wrapper/fulltext/parser/r/comment.result
    mysql-test/mroonga/wrapper/fulltext/parser/t/comment.test

  Modified: mysql-test/mroonga/wrapper/fulltext/parser/r/comment.result (+10 -10)
===================================================================
--- mysql-test/mroonga/wrapper/fulltext/parser/r/comment.result    2015-05-16 23:33:05 +0900 (d7b20a3)
+++ mysql-test/mroonga/wrapper/fulltext/parser/r/comment.result    2015-05-16 23:35:13 +0900 (7ee0732)
@@ -13,17 +13,17 @@ diaries	CREATE TABLE `diaries` (
   PRIMARY KEY (`id`),
   FULLTEXT KEY `body_index` (`body`) COMMENT 'parser "TokenBigramSplitSymbolAlphaDigit"'
 ) ENGINE=Mroonga DEFAULT CHARSET=utf8 COMMENT='engine "innodb"'
-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 ("will start Groonga!");
+insert into diaries (body) values ("starting Groonga...");
+insert into diaries (body) values ("started Groonga.");
 select * from diaries;
 id	body
-1	will start groonga!
-2	starting groonga...
-3	started groonga.
-select * from diaries where match(body) against("start");
+1	will start Groonga!
+2	starting Groonga...
+3	started 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;

  Modified: mysql-test/mroonga/wrapper/fulltext/parser/t/comment.test (+5 -5)
===================================================================
--- mysql-test/mroonga/wrapper/fulltext/parser/t/comment.test    2015-05-16 23:33:05 +0900 (500dee5)
+++ mysql-test/mroonga/wrapper/fulltext/parser/t/comment.test    2015-05-16 23:35:13 +0900 (d1e9a0e)
@@ -1,4 +1,4 @@
-# Copyright(C) 2011 Kouhei Sutou <kou �� clear-code.com>
+# Copyright(C) 2011-2015 Kouhei Sutou <kou �� clear-code.com>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -29,11 +29,11 @@ create table diaries (
     comment 'parser "TokenBigramSplitSymbolAlphaDigit"'
 ) comment = 'engine "innodb"' 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 ("will start Groonga!");
+insert into diaries (body) values ("starting Groonga...");
+insert into diaries (body) values ("started 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;
 
 --source ../../../../include/mroonga/have_mroonga_deinit.inc
-------------- next part --------------
HTML����������������������������...
Download 



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