Navigation Menu

Skip to content

Commit

Permalink
test: add missing "+" for BOOLEAN MODE
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Dec 28, 2014
1 parent 396b653 commit 04e1705
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -32,9 +32,9 @@ load --table bugs
["_key","id","tags"],
[1,1,["Linux","MySQL","groonga"]]
]
SELECT *, MATCH (tags) AGAINST ("MySQL" IN BOOLEAN MODE) AS score
SELECT *, MATCH (tags) AGAINST ("+MySQL" IN BOOLEAN MODE) AS score
FROM bugs
WHERE MATCH (tags) AGAINST ("MySQL" IN BOOLEAN MODE);
WHERE MATCH (tags) AGAINST ("+MySQL" IN BOOLEAN MODE);
id tags score
1 Linux MySQL groonga 1
DROP TABLE bugs;
Expand Down
Expand Up @@ -41,9 +41,9 @@ INSERT INTO bugs (id, tags) VALUES (1, "Linux MySQL groonga");

SELECT mroonga_command("dump");

SELECT *, MATCH (tags) AGAINST ("MySQL" IN BOOLEAN MODE) AS score
SELECT *, MATCH (tags) AGAINST ("+MySQL" IN BOOLEAN MODE) AS score
FROM bugs
WHERE MATCH (tags) AGAINST ("MySQL" IN BOOLEAN MODE);
WHERE MATCH (tags) AGAINST ("+MySQL" IN BOOLEAN MODE);

DROP TABLE bugs;
DROP TABLE tags;
Expand Down

0 comments on commit 04e1705

Please sign in to comment.