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

Back to archive index

Kouhei Sutou null+****@clear*****
Sat May 16 23:06:11 JST 2015


Kouhei Sutou	2015-05-16 23:06:11 +0900 (Sat, 16 May 2015)

  New Revision: 6f4d87cf478b03e95092f444d31d70a28f0c1e8f
  https://github.com/mroonga/mroonga/commit/6f4d87cf478b03e95092f444d31d70a28f0c1e8f

  Message:
    test: follow FT_SORT flag support

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

  Modified: mysql-test/mroonga/storage/fulltext/parser/r/comment.result (+3 -1)
===================================================================
--- mysql-test/mroonga/storage/fulltext/parser/r/comment.result    2015-05-16 23:02:50 +0900 (f2abfe8)
+++ mysql-test/mroonga/storage/fulltext/parser/r/comment.result    2015-05-16 23:06:11 +0900 (04219e9)
@@ -21,7 +21,9 @@ id	body
 1	will start groonga!
 2	starting groonga...
 3	started groonga.
-select * from diaries where match(body) against("start");
+select * from diaries
+where match(body) against("+start" IN BOOLEAN MODE)
+ORDER BY id;
 id	body
 1	will start groonga!
 2	starting groonga...

  Modified: mysql-test/mroonga/storage/fulltext/parser/t/comment.test (+5 -2)
===================================================================
--- mysql-test/mroonga/storage/fulltext/parser/t/comment.test    2015-05-16 23:02:50 +0900 (d9aba5c)
+++ mysql-test/mroonga/storage/fulltext/parser/t/comment.test    2015-05-16 23:06:11 +0900 (16c49cf)
@@ -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
@@ -32,7 +32,10 @@ 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