DROP TABLE IF EXISTS memos;
SET NAMES UTF8MB4;
CREATE TABLE memos (
year int,
content TEXT,
FULLTEXT INDEX (content)
) DEFAULT CHARSET UTF8MB4;
INSERT INTO memos VALUES (2017, 'Groonga is fast');
INSERT INTO memos VALUES (2017, 'Fast embeddable full text search engine');
INSERT INTO memos VALUES (2018, 'Mroonga is fast');
INSERT INTO memos VALUES (2018, 'Groonga + MySQL');
INSERT INTO memos VALUES (2019, 'Groonga is so cool');
SELECT *
FROM memos
WHERE MATCH(content) AGAINST('+Groonga' IN BOOLEAN MODE) AND
(year = 2017 OR year = 2018);
year	content
2017	Groonga is fast
2018	Groonga + MySQL
SHOW STATUS LIKE 'mroonga_condition_push_down';
Variable_name	Value
Mroonga_condition_push_down	1
DROP TABLE memos;
