11INSTALL PLUGIN simple_parser SONAME 'mypluglib';
2+ FLUSH TABLES;
23# Test Part 1: Grammar Test
34CREATE TABLE articles (
45id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
@@ -31,7 +32,7 @@ INSERT INTO articles (title, body) VALUES
3132('1001 MySQL Tricks','How to use full-text search engine'),
3233('Go MySQL Tricks','How to use full text search engine');
3334SELECT * FROM articles WHERE
34- MATCH(title, body) AGAINST('mysql');
35+ MATCH(title, body) AGAINST('mysql') ORDER BY id ;
3536id title body
36371 MySQL Tutorial DBMS stands for MySQL DataBase ...
37382 How To Use MySQL Well After you went through a ...
@@ -68,7 +69,7 @@ INSERT INTO articles (title, body) VALUES
6869('Go MySQL Tricks','How to use full text search engine');
6970ALTER TABLE articles ADD FULLTEXT INDEX (title, body) WITH PARSER simple_parser;
7071SELECT * FROM articles WHERE
71- MATCH(title, body) AGAINST('mysql');
72+ MATCH(title, body) AGAINST('mysql') ORDER BY id ;
7273id title body
73741 MySQL Tutorial DBMS stands for MySQL DataBase ...
74752 How To Use MySQL Well After you went through a ...
@@ -88,21 +89,23 @@ MATCH(title, body) AGAINST('full text');
8889id title body
89905 Go MySQL Tricks How to use full text search engine
9091SELECT * FROM articles WHERE
91- MATCH(title, body) AGAINST('full-text' WITH QUERY EXPANSION);
92+ MATCH(title, body) AGAINST('full-text' WITH QUERY EXPANSION)
93+ ORDER BY id;
9294id title body
93- 4 1001 MySQL Tricks How to use full-text search engine
94- 5 Go MySQL Tricks How to use full text search engine
95- 2 How To Use MySQL Well After you went through a ...
96951 MySQL Tutorial DBMS stands for MySQL DataBase ...
96+ 2 How To Use MySQL Well After you went through a ...
97973 Optimizing MySQL In this tutorial we will show ...
98+ 4 1001 MySQL Tricks How to use full-text search engine
99+ 5 Go MySQL Tricks How to use full text search engine
98100SELECT * FROM articles WHERE
99- MATCH(title, body) AGAINST('full text' WITH QUERY EXPANSION);
101+ MATCH(title, body) AGAINST('full text' WITH QUERY EXPANSION)
102+ ORDER BY id;
100103id title body
101- 5 Go MySQL Tricks How to use full text search engine
102- 4 1001 MySQL Tricks How to use full-text search engine
103- 2 How To Use MySQL Well After you went through a ...
1041041 MySQL Tutorial DBMS stands for MySQL DataBase ...
105+ 2 How To Use MySQL Well After you went through a ...
1051063 Optimizing MySQL In this tutorial we will show ...
107+ 4 1001 MySQL Tricks How to use full-text search engine
108+ 5 Go MySQL Tricks How to use full text search engine
106109SELECT * FROM articles WHERE
107110MATCH(title, body) AGAINST('"mysql database"' IN BOOLEAN MODE);
108111id title body
@@ -137,27 +140,27 @@ INSERT INTO articles (title, body) VALUES
137140('Go MariaDB Tricks','How to use full text search engine');
138141# restart
139142SELECT * FROM articles WHERE
140- MATCH(title, body) AGAINST('MySQL');
143+ MATCH(title, body) AGAINST('MySQL') ORDER BY id ;
141144id title body
1421456 MySQL Tutorial DBMS stands for MySQL DataBase ...
1431467 How To Use MySQL Well After you went through a ...
1441478 Optimizing MySQL In this tutorial we will show ...
1451489 1001 MySQL Tricks How to use full-text search engine
146149SELECT * FROM articles WHERE
147- MATCH(title, body) AGAINST('tutorial');
150+ MATCH(title, body) AGAINST('tutorial') ORDER BY id ;
148151id title body
1491526 MySQL Tutorial DBMS stands for MySQL DataBase ...
1501538 Optimizing MySQL In this tutorial we will show ...
151154SELECT * FROM articles WHERE
152- MATCH(title, body) AGAINST('Tricks');
155+ MATCH(title, body) AGAINST('Tricks') ORDER BY id ;
153156id title body
1541579 1001 MySQL Tricks How to use full-text search engine
15515810 Go MariaDB Tricks How to use full text search engine
156159SELECT * FROM articles WHERE
157- MATCH(title, body) AGAINST('full text search');
160+ MATCH(title, body) AGAINST('full text search') ORDER BY id ;
158161id title body
159- 10 Go MariaDB Tricks How to use full text search engine
1601629 1001 MySQL Tricks How to use full-text search engine
163+ 10 Go MariaDB Tricks How to use full text search engine
161164SELECT COUNT(*) FROM articles;
162165COUNT(*)
1631665
@@ -185,7 +188,8 @@ UNINSTALL PLUGIN simple_parser;
185188Warnings:
186189Warning 1620 Plugin is busy and will be uninstalled on shutdown
187190SELECT * FROM articles WHERE
188- MATCH(title, body) AGAINST('mysql');
191+ MATCH(title, body) AGAINST('mysql')
192+ ORDER BY id;
189193id title body
1901941 MySQL Tutorial DBMS stands for MySQL DataBase ...
1911952 How To Use MySQL Well After you went through a ...
0 commit comments