DROP TABLE IF EXISTS diaries;
SET NAMES utf8mb4;
CREATE TABLE diaries (
day DATE PRIMARY KEY,
content text NOT NULL,
FULLTEXT INDEX (content)
COMMENT 'normalizer "NormalizerNFKC100(\'unify_kana\', true)"'
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT INTO diaries VALUES ("2013-04-23", "ブラックコーヒーを飲んだ。");
INSERT INTO diaries VALUES ("2013-04-24", "ぶらっくコーヒーを飲んだ。");
SELECT * FROM diaries
WHERE MATCH (content) AGAINST ("+ブラック" IN BOOLEAN MODE);
day	content
2013-04-23	ブラックコーヒーを飲んだ。
2013-04-24	ぶらっくコーヒーを飲んだ。
SELECT mroonga_command('dump --dump_plugins no');
mroonga_command('dump --dump_plugins no')
table_create diaries TABLE_PAT_KEY Time
column_create diaries content COLUMN_SCALAR LongText
column_create diaries day COLUMN_SCALAR Time

table_create diaries#content TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer "NormalizerNFKC100(\"unify_kana\", true)"

table_create mroonga_operations TABLE_NO_KEY
column_create mroonga_operations record COLUMN_SCALAR UInt32
column_create mroonga_operations table COLUMN_SCALAR ShortText
column_create mroonga_operations type COLUMN_SCALAR ShortText

load --table diaries
[
["_key","content","day"],
[1366675200.0,"ブラックコーヒーを飲んだ。",1366675200.0],
[1366761600.0,"ぶらっくコーヒーを飲んだ。",1366761600.0]
]

column_create diaries#content index COLUMN_INDEX|WITH_POSITION diaries content
DROP TABLE diaries;
