Navigation Menu

Skip to content

Commit

Permalink
[test] add an expected result for full text search with no such key.
Browse files Browse the repository at this point in the history
refs #1181.
  • Loading branch information
kou committed Nov 24, 2011
1 parent 3534041 commit cf8fb14
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions test/sql/suite/groonga_storage/r/fulltext_no_such_key.result
@@ -0,0 +1,25 @@
DROP TABLE IF EXISTS diaries;
CREATE TABLE diaries (
id INT PRIMARY KEY AUTO_INCREMENT,
title TEXT,
body TEXT,
FULLTEXT INDEX title_index (title),
FULLTEXT INDEX body_index (body)
) DEFAULT CHARSET UTF8;
SHOW CREATE TABLE diaries;
Table Create Table
diaries CREATE TABLE `diaries` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` text,
`body` text,
PRIMARY KEY (`id`),
FULLTEXT KEY `title_index` (`title`),
FULLTEXT KEY `body_index` (`body`)
) ENGINE=groonga DEFAULT CHARSET=utf8
INSERT INTO diaries (title, body) VALUES ("survey", "will start groonga!");
INSERT INTO diaries (title, body) VALUES ("groonga (1)", "starting groonga...");
INSERT INTO diaries (title, body) VALUES ("groonga (2)", "started groonga.");
SELECT * FROM diaries FORCE INDEX(primary)
WHERE MATCH(title) AGAINST("survey" IN BOOLEAN MODE);
id title body
DROP TABLE diaries;

0 comments on commit cf8fb14

Please sign in to comment.