Navigation Menu

Skip to content

Commit

Permalink
[doc] fix wrong execution result.
Browse files Browse the repository at this point in the history
Reported by Hidekazu Tanaka. Thanks!!!
  • Loading branch information
kou committed Jan 7, 2012
1 parent 4827b03 commit 03b8f32
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions doc/source/userguide/storage.rst
Expand Up @@ -71,13 +71,13 @@ The result having the search word ``晴れ`` more, i.e. ``id = 3`` message havin
You can use ``AS`` to change the attribute name. ::

mysql> SELECT *, MATCH (content) AGAINST ("晴れ") AS score FROM diaries WHERE MATCH (content) AGAINST ("晴れ") ORDER BY MATCH (content) AGAINST ("晴れ") DESC;
+----+--------------------------------------------------------------+------------------------------------+
| id | content | MATCH (content) AGAINST ("晴れ") |
+----+--------------------------------------------------------------+------------------------------------+
| 3 | 今日は晴れました。明日も晴れるでしょう。 | 2 |
| 1 | 明日の天気は晴れでしょう。 | 1 |
| 4 | 今日は晴れましたが、明日は雨でしょう。 | 1 |
+----+--------------------------------------------------------------+------------------------------------+
+----+--------------------------------------------------------------+-------+
| id | content | score |
+----+--------------------------------------------------------------+-------+
| 3 | 今日は晴れました。明日も晴れるでしょう。 | 2 |
| 1 | 明日の天気は晴れでしょう。 | 1 |
| 4 | 今日は晴れましたが、明日は雨でしょう。 | 1 |
+----+--------------------------------------------------------------+-------+
3 rows in set (0.00 sec)

How to specify the parser for full text search
Expand Down
14 changes: 7 additions & 7 deletions doc/source/userguide/wrapper.rst
Expand Up @@ -81,13 +81,13 @@ The result having the search word ``晴れ`` more, i.e. ``id = 3`` message havin
You can use ``AS`` to change the attribute name. ::

mysql> SELECT *, MATCH (content) AGAINST ("晴れ") AS score FROM diaries WHERE MATCH (content) AGAINST ("晴れ") ORDER BY MATCH (content) AGAINST ("晴れ") DESC;
+----+--------------------------------------------------------------+------------------------------------+
| id | content | MATCH (content) AGAINST ("晴れ") |
+----+--------------------------------------------------------------+------------------------------------+
| 3 | 今日は晴れました。明日も晴れるでしょう。 | 2 |
| 1 | 明日の天気は晴れでしょう。 | 1 |
| 4 | 今日は晴れましたが、明日は雨でしょう。 | 1 |
+----+--------------------------------------------------------------+------------------------------------+
+----+--------------------------------------------------------------+-------+
| id | content | score |
+----+--------------------------------------------------------------+-------+
| 3 | 今日は晴れました。明日も晴れるでしょう。 | 2 |
| 1 | 明日の天気は晴れでしょう。 | 1 |
| 4 | 今日は晴れましたが、明日は雨でしょう。 | 1 |
+----+--------------------------------------------------------------+-------+
3 rows in set (0.00 sec)

How to specify the parser for full text search
Expand Down

0 comments on commit 03b8f32

Please sign in to comment.