Navigation Menu

Skip to content

Commit

Permalink
Translate
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 16, 2015
1 parent 03bc355 commit b722ca4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 7 additions & 3 deletions _po/ja/tutorial/index.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-10-15 23:38+0900\n"
"PO-Revision-Date: 2015-10-16 21:28+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -239,15 +239,19 @@ msgid ""
"You can use `pgroonga.score` function to get precision as a number. If a recor"
"d is more precision against searched query, the record has more higher number."
msgstr ""
"`pgroonga.score`関数を使うとマッチした度合いを数値で取得することができます。検索したクエリーに対してよりマッチしているレコードほど高い数値に"
"なります。"

msgid ""
"You need to add primary key column into `pgroonga` index to use `pgroonga.scor"
"e` function. If you don't add primary key column into `pgroonga` index, `pgroo"
"nga.score` function always returns `0`."
msgstr ""
"`pgroonga.score`関数を使うためにはプライマリーキーカラムを`pgroonga`インデックスに入れる必要があります。もし、プライマリーキーカラ"
"ムが`pgroonga`インデックスに入っていない場合は、`pgroonga.score`関数は常に`0`を返します。"

msgid "Here is a sample schema that includes primary key into indexed columns:"
msgstr ""
msgstr "以下はインデックス対象のカラムにプライマリーキーが入っているスキーマの例です。"

msgid ""
"```sql\n"
Expand Down Expand Up @@ -275,7 +279,7 @@ msgid ""
msgstr ""

msgid "Perform full text search and get score."
msgstr ""
msgstr "全文検索を実行してスコアーを取得します。"

msgid ""
"```sql\n"
Expand Down
8 changes: 4 additions & 4 deletions ja/tutorial/index.md
Expand Up @@ -130,11 +130,11 @@ SELECT * FROM memos WHERE content %% '全文検索';

### スコアー

You can use `pgroonga.score` function to get precision as a number. If a record is more precision against searched query, the record has more higher number.
`pgroonga.score`関数を使うとマッチした度合いを数値で取得することができます。検索したクエリーに対してよりマッチしているレコードほど高い数値になります。

You need to add primary key column into `pgroonga` index to use `pgroonga.score` function. If you don't add primary key column into `pgroonga` index, `pgroonga.score` function always returns `0`.
`pgroonga.score`関数を使うためにはプライマリーキーカラムを`pgroonga`インデックスに入れる必要があります。もし、プライマリーキーカラムが`pgroonga`インデックスに入っていない場合は、`pgroonga.score`関数は常に`0`を返します。

Here is a sample schema that includes primary key into indexed columns:
以下はインデックス対象のカラムにプライマリーキーが入っているスキーマの例です。

```sql
CREATE TABLE score_memos (
Expand Down Expand Up @@ -162,7 +162,7 @@ INSERT INTO score_memos VALUES (4, 'groongaコマンドがあります。');
SET enable_seqscan = off;
```

Perform full text search and get score.
全文検索を実行してスコアーを取得します。

```sql
SELECT *, pgroonga.score(score_memos)
Expand Down

0 comments on commit b722ca4

Please sign in to comment.