drop table if exists diaries;
create table diaries (
id int primary key auto_increment,
body text,
fulltext index body_index (body)
) default charset utf8 COMMENT = 'engine "innodb"';
show create table diaries;
Table	Create Table
diaries	CREATE TABLE `diaries` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `body` text,
  PRIMARY KEY (`id`),
  FULLTEXT KEY `body_index` (`body`)
) ENGINE=mroonga DEFAULT CHARSET=utf8 COMMENT='engine "innodb"'
insert into diaries (body) values ("will start groonga!");
set mroonga_dry_write=true;
update diaries set body = "starting groonga..." where id = 1;
select * from diaries;
id	body
1	starting groonga...
select * from diaries where match (body) against ("will");
id	body
1	starting groonga...
select * from diaries where match (body) against ("starting");
id	body
set mroonga_dry_write=false;
update diaries set body = "started groonga." where id = 1;
select * from diaries;
id	body
1	started groonga.
select * from diaries where match (body) against ("will");
id	body
1	started groonga.
select * from diaries where match (body) against ("starting");
id	body
select * from diaries where match (body) against ("started");
id	body
1	started groonga.
drop table diaries;
