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