summaryrefslogtreecommitdiff
path: root/storage/mroonga/mysql-test/mroonga/storage/r/create_table_table_token_filters_stop_word.result
blob: bc21ed975025f3bba6c54f0c382655e271dc86dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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=utf8;
CREATE TABLE memos (
id INT NOT NULL PRIMARY KEY,
content TEXT NOT NULL,
FULLTEXT INDEX (content) COMMENT 'table "terms"'
) DEFAULT CHARSET=utf8;
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;