SELECT mroonga_command("plugin_register token_filters/stop_word");
mroonga_command("plugin_register token_filters/stop_word")
true
CREATE TABLE terms (
term VARCHAR(64) NOT NULL PRIMARY KEY,
is_stop_word BOOL NOT NULL
) COMMENT='default_tokenizer "TokenBigram", token_filters "TokenFilterStopWord"' DEFAULT CHARSET=utf8mb4;
CREATE TABLE memos (
id INT NOT NULL PRIMARY KEY,
content TEXT NOT NULL,
FULLTEXT INDEX (content) COMMENT 'table "terms"'
) DEFAULT CHARSET=utf8mb4;
INSERT INTO terms VALUES ("and", true);
INSERT INTO memos VALUES (1, "Hello");
INSERT INTO memos VALUES (2, "Hello and Good-bye");
INSERT INTO memos VALUES (3, "Good-bye");
SELECT * FROM memos
WHERE MATCH (content) AGAINST ("+\"Hello and\"" IN BOOLEAN MODE);
id	content
1	Hello
2	Hello and Good-bye
DROP TABLE memos;
DROP TABLE terms;
