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
@@ -135,27 +138,27 @@ INSERT INTO articles (title, body) VALUES
135138('1001 MySQL Tricks','How to use full-text search engine'),
136139('Go MariaDB Tricks','How to use full text search engine');
137140SELECT * FROM articles WHERE
138- MATCH(title, body) AGAINST('MySQL');
141+ MATCH(title, body) AGAINST('MySQL') ORDER BY id ;
139142id title body
1401436 MySQL Tutorial DBMS stands for MySQL DataBase ...
1411447 How To Use MySQL Well After you went through a ...
1421458 Optimizing MySQL In this tutorial we will show ...
1431469 1001 MySQL Tricks How to use full-text search engine
144147SELECT * FROM articles WHERE
145- MATCH(title, body) AGAINST('tutorial');
148+ MATCH(title, body) AGAINST('tutorial') ORDER BY id ;
146149id title body
1471506 MySQL Tutorial DBMS stands for MySQL DataBase ...
1481518 Optimizing MySQL In this tutorial we will show ...
149152SELECT * FROM articles WHERE
150- MATCH(title, body) AGAINST('Tricks');
153+ MATCH(title, body) AGAINST('Tricks') ORDER BY id ;
151154id title body
1521559 1001 MySQL Tricks How to use full-text search engine
15315610 Go MariaDB Tricks How to use full text search engine
154157SELECT * FROM articles WHERE
155- MATCH(title, body) AGAINST('full text search');
158+ MATCH(title, body) AGAINST('full text search') ORDER BY id ;
156159id title body
157- 10 Go MariaDB Tricks How to use full text search engine
1581609 1001 MySQL Tricks How to use full-text search engine
161+ 10 Go MariaDB Tricks How to use full text search engine
159162SELECT COUNT(*) FROM articles;
160163COUNT(*)
1611645
@@ -183,7 +186,8 @@ UNINSTALL PLUGIN simple_parser;
183186Warnings:
184187Warning 1620 Plugin is busy and will be uninstalled on shutdown
185188SELECT * FROM articles WHERE
186- MATCH(title, body) AGAINST('mysql');
189+ MATCH(title, body) AGAINST('mysql')
190+ ORDER BY id;
187191id title body
1881921 MySQL Tutorial DBMS stands for MySQL DataBase ...
1891932 How To Use MySQL Well After you went through a ...
0 commit comments