Debian Codegraph @

mysql-test/suite/storage_engine/fulltext_search.result

raw
1 DROP TABLE IF EXISTS t1;
2 CREATE TABLE t1 (v0 VARCHAR(64) <CUSTOM_COL_OPTIONS>,
3 v1 VARCHAR(16384) <CUSTOM_COL_OPTIONS>,
4 v2 TEXT <CUSTOM_COL_OPTIONS>,
5 FULLTEXT v1 (v1)
6 ) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
7 SHOW INDEXES IN t1;
8 Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
9 t1 1 v1 1 v1 # # NULL NULL YES FULLTEXT
10 INSERT INTO t1 (v0,v1,v2) VALUES ('text1','Here is a list of recommended books on MariaDB and MySQL. We\'ve provided links to Amazon.com here for convenience, but they can be found at many other bookstores, both online and off.
11 If you want to have your favorite MySQL / MariaDB book listed here, please leave a comment.
12 For developers who want to code on MariaDB or MySQL
13 * Understanding MySQL Internals by Sasha Pachev, former MySQL developer at MySQL AB.
14 o This is the only book we know about that describes the internals of MariaDB / MySQL. A must have for anyone who wants to understand and develop on MariaDB!
15 o Not all topics are covered and some parts are slightly outdated, but still the best book on this topic.
16 * MySQL 5.1 Plugin Development by Sergei Golubchik and Andrew Hutchings
17 o A must read for anyone wanting to write a plugin for MariaDB, written by the Sergei who designed the plugin interface for MySQL and MariaDB!
18 For MariaDB / MySQL end users
19 * MariaDB Crash Course by Ben Forta
20 o First MariaDB book!
21 o For people who want to learn SQL and the basics of MariaDB.
22 o Now shipping. Purchase at Amazon.com or your favorite bookseller.
23 * SQL-99 Complete, Really by Peter Gulutzan & Trudy Pelzer.
24 o Everything you wanted to know about the SQL 99 standard. Excellent reference book!
25 o Free to read in the Knowledgebase!
26 * MySQL (4th Edition) by Paul DuBois
27 o The \'default\' book to read if you wont to learn to use MySQL / MariaDB.
28 * MySQL Cookbook by Paul DuBois
29 o A lot of examples of how to use MySQL. As with all of Paul\'s books, it\'s worth its weight in gold and even enjoyable reading for such a \'dry\' subject.
30 * High Performance MySQL, Second Edition, By Baron Schwartz, Peter Zaitsev, Vadim Tkachenko, Jeremy D. Zawodny, Arjen Lentz, Derek J. Balling, et al.
31 o \"High Performance MySQL is the definitive guide to building fast, reliable systems with MySQL. Written by noted experts with years of real-world experience building very large systems, this book covers every aspect of MySQL performance in detail, and focuses on robustness, security, and data integrity. Learn advanced techniques in depth so you can bring out MySQL\'s full power.\" (From the book description at O\'Reilly)
32
33 * MySQL Admin Cookbook
34 o A quick step-by-step guide for MySQL users and database administrators to tackle real-world challenges with MySQL configuration and administration
35
36 * MySQL 5.0 Certification Study Guide, By Paul DuBois, Stefan Hinz, Carsten Pedersen
37 o This is the official guide to cover the passing of the two MySQL Certification examinations. It is valid till version 5.0 of the server, so while it misses all the features available in MySQL 5.1 and greater (including MariaDB 5.1 and greater), it provides a good basic understanding of MySQL for the end-user. ',
38 'There are several reasons why contributing code is one of the easiest and most rewarding ways to contribute to MariaDB:
39
40 1. We are very responsive toward reviews of submitted code and as soon as the review is done, the submitted code is merged into an existing MariaDB tree and made available to everyone, not just select customers.
41 2. Code reviews are performed by the MariaDB core development team and the quality, detail, and timeliness of our reviews are better than you will find elsewhere.
42 3. With MariaDB everyone has access to the latest code.
43 4. If a patch is very safe and/or very useful we are willing to push it into the stable code (as long as it can\'t break any existing applications). We are willing to do this to ensure the freedom to add small, needed fixes on a stable release so users don\'t have to wait a year for something to be added which is critical to their business.
44 5. If you are an active contributor, you can become a member of maria-captains, even if you aren\'t working for Monty Program Ab. All captains have the same rights as any other captain to accept and reject patches. Our development model is truly open for everyone.
45 The Contributing Code page details many of the actual steps involved in working with the MariaDB source code. It\'s important that you use the same tools and submit patches in the same way as other developers to keep development running smoothly.'
46 ), ('text2','test1','test2');
47 SELECT v0 FROM t1 WHERE MATCH(v1) AGAINST ('contributing' IN NATURAL LANGUAGE MODE);
48 v0
49 INSERT INTO t1 (v0,v1,v2) VALUES ('text3','test','test');
50 SELECT v0, MATCH(v1) AGAINST('contributing' IN NATURAL LANGUAGE MODE) AS rating FROM t1 WHERE MATCH(v1) AGAINST ('contributing' IN NATURAL LANGUAGE MODE);
51 v0 rating
52 INSERT INTO t1 (v0,v1,v2) VALUES ('text4','Contributing more...','...is a good idea'),('text5','test','test');
53 SELECT v0, MATCH(v1) AGAINST('contributing') AS rating FROM t1 WHERE MATCH(v1) AGAINST ('contributing');
54 v0 rating
55 text4 1.3705332279205322
56 SELECT v0 FROM t1 WHERE MATCH(v1,v2) AGAINST ('-test1 +critical +Cook*' IN BOOLEAN MODE);
57 v0
58 text1
59 SELECT v0 FROM t1 WHERE MATCH(v1,v2) AGAINST ('-patch +critical +Cook*' IN BOOLEAN MODE);
60 v0
61 SELECT v0, MATCH(v1) AGAINST('database' WITH QUERY EXPANSION) AS rating FROM t1 WHERE MATCH(v1) AGAINST ('database' WITH QUERY EXPANSION);
62 v0 rating
63 text1 178.11756896972656
64 DROP TABLE t1;
65 CREATE TABLE t1 (v0 VARCHAR(64) <CUSTOM_COL_OPTIONS>,
66 v1 VARCHAR(16384) <CUSTOM_COL_OPTIONS>,
67 v2 TEXT <CUSTOM_COL_OPTIONS>,
68 FULLTEXT v1 (v1),
69 FULLTEXT v1_v2 (v1,v2)
70 ) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS>;
71 SHOW INDEXES IN t1;
72 Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
73 t1 1 v1 1 v1 # # NULL NULL YES FULLTEXT
74 t1 1 v1_v2 1 v1 # # NULL NULL YES FULLTEXT
75 t1 1 v1_v2 2 v2 # # NULL NULL YES FULLTEXT
76 INSERT INTO t1 (v0,v1,v2) VALUES ('text1','Here is a list of recommended books on MariaDB and MySQL. We\'ve provided links to Amazon.com here for convenience, but they can be found at many other bookstores, both online and off.
77 If you want to have your favorite MySQL / MariaDB book listed here, please leave a comment.
78 For developers who want to code on MariaDB or MySQL
79 * Understanding MySQL Internals by Sasha Pachev, former MySQL developer at MySQL AB.
80 o This is the only book we know about that describes the internals of MariaDB / MySQL. A must have for anyone who wants to understand and develop on MariaDB!
81 o Not all topics are covered and some parts are slightly outdated, but still the best book on this topic.
82 * MySQL 5.1 Plugin Development by Sergei Golubchik and Andrew Hutchings
83 o A must read for anyone wanting to write a plugin for MariaDB, written by the Sergei who designed the plugin interface for MySQL and MariaDB!
84 For MariaDB / MySQL end users
85 * MariaDB Crash Course by Ben Forta
86 o First MariaDB book!
87 o For people who want to learn SQL and the basics of MariaDB.
88 o Now shipping. Purchase at Amazon.com or your favorite bookseller.
89 * SQL-99 Complete, Really by Peter Gulutzan & Trudy Pelzer.
90 o Everything you wanted to know about the SQL 99 standard. Excellent reference book!
91 o Free to read in the Knowledgebase!
92 * MySQL (4th Edition) by Paul DuBois
93 o The \'default\' book to read if you wont to learn to use MySQL / MariaDB.
94 * MySQL Cookbook by Paul DuBois
95 o A lot of examples of how to use MySQL. As with all of Paul\'s books, it\'s worth its weight in gold and even enjoyable reading for such a \'dry\' subject.
96 * High Performance MySQL, Second Edition, By Baron Schwartz, Peter Zaitsev, Vadim Tkachenko, Jeremy D. Zawodny, Arjen Lentz, Derek J. Balling, et al.
97 o \"High Performance MySQL is the definitive guide to building fast, reliable systems with MySQL. Written by noted experts with years of real-world experience building very large systems, this book covers every aspect of MySQL performance in detail, and focuses on robustness, security, and data integrity. Learn advanced techniques in depth so you can bring out MySQL\'s full power.\" (From the book description at O\'Reilly)
98
99 * MySQL Admin Cookbook
100 o A quick step-by-step guide for MySQL users and database administrators to tackle real-world challenges with MySQL configuration and administration
101
102 * MySQL 5.0 Certification Study Guide, By Paul DuBois, Stefan Hinz, Carsten Pedersen
103 o This is the official guide to cover the passing of the two MySQL Certification examinations. It is valid till version 5.0 of the server, so while it misses all the features available in MySQL 5.1 and greater (including MariaDB 5.1 and greater), it provides a good basic understanding of MySQL for the end-user. ',
104 'There are several reasons why contributing code is one of the easiest and most rewarding ways to contribute to MariaDB:
105
106 1. We are very responsive toward reviews of submitted code and as soon as the review is done, the submitted code is merged into an existing MariaDB tree and made available to everyone, not just select customers.
107 2. Code reviews are performed by the MariaDB core development team and the quality, detail, and timeliness of our reviews are better than you will find elsewhere.
108 3. With MariaDB everyone has access to the latest code.
109 4. If a patch is very safe and/or very useful we are willing to push it into the stable code (as long as it can\'t break any existing applications). We are willing to do this to ensure the freedom to add small, needed fixes on a stable release so users don\'t have to wait a year for something to be added which is critical to their business.
110 5. If you are an active contributor, you can become a member of maria-captains, even if you aren\'t working for Monty Program Ab. All captains have the same rights as any other captain to accept and reject patches. Our development model is truly open for everyone.
111 The Contributing Code page details many of the actual steps involved in working with the MariaDB source code. It\'s important that you use the same tools and submit patches in the same way as other developers to keep development running smoothly.'
112 ), ('text2','test1','test2');
113 SELECT v0 FROM t1 WHERE MATCH(v1,v2) AGAINST ('contributing' IN NATURAL LANGUAGE MODE);
114 v0
115 INSERT INTO t1 (v0,v1,v2) VALUES ('text3','test','test');
116 SELECT v0, MATCH(v1,v2) AGAINST('contributing' IN NATURAL LANGUAGE MODE) AS rating FROM t1 WHERE MATCH(v1,v2) AGAINST ('contributing' IN NATURAL LANGUAGE MODE);
117 v0 rating
118 text1 0.2809644043445587
119 INSERT INTO t1 (v0,v1,v2) VALUES ('text4','Contributing more...','...is a good idea'),('text5','test','test');
120 SELECT v0, MATCH(v1) AGAINST('contributing') AS rating FROM t1 WHERE MATCH(v1) AGAINST ('contributing');
121 v0 rating
122 text4 1.3705332279205322
123 SELECT v0 FROM t1 WHERE MATCH(v1,v2) AGAINST ('-test1 +critical +Cook*' IN BOOLEAN MODE);
124 v0
125 text1
126 SELECT v0 FROM t1 WHERE MATCH(v1,v2) AGAINST ('-patch +critical +Cook*' IN BOOLEAN MODE);
127 v0
128 SELECT v0, MATCH(v1,v2) AGAINST('database' WITH QUERY EXPANSION) AS rating FROM t1 WHERE MATCH(v1,v2) AGAINST ('database' WITH QUERY EXPANSION);
129 v0 rating
130 text1 190.56150817871094
131 text4 1.1758291721343994
132 DROP TABLE t1;