Navigation Menu

Skip to content

Commit

Permalink
Translate how to use PGroonga for array
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 23, 2015
1 parent a146387 commit 1eddca9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
20 changes: 12 additions & 8 deletions _po/ja/tutorial/index.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-10-23 13:24+0900\n"
"PO-Revision-Date: 2015-10-23 13:33+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -559,31 +559,35 @@ msgid ""
msgstr ""

msgid "## How to use PGroonga for array"
msgstr ""
msgstr "## 配列に対してPGroongaを使う方法"

msgid ""
"You can use PGroonga as an index for array of `text` type or array of `varchar"
"`."
msgstr ""
msgstr "`text`型の配列または`varchar`型の配列のインデックスとしてPGroongaを使うことができます。"

msgid ""
"You can perform full text search against array of `text` type. If one or more "
"elements in an array are matched, the record is matched."
msgstr ""
msgstr "`text`型の配列に対して全文検索することができます。配列の中の1つ以上の要素がマッチしたらそのレコードはマッチしたことになります。"

msgid ""
"You can perform equality condition against array of `varchar` type. If one or "
"more elements in an array are matched, the record is matched. It's useful for "
"tag search."
msgstr ""
"`varchar`型の配列に対して等価条件で検索することができます。配列の中の1つ以上の要素がマッチしたらそのレコードはマッチしたことになります。これはタグ"
"検索で有用です。"

msgid ""
" * How to use PGroonga for `text` type of array\n"
" * How to use PGroonga for `varchar` type of array"
msgstr ""
" * `text`型の配列に対してPGroongaを使う方法\n"
" * `varchar`型の配列に対してPGroongaを使う方法"

msgid "### How to use PGroonga for `text` type of array"
msgstr ""
msgstr "### `text`型の配列に対してPGroongaを使う方法"

msgid ""
"```sql\n"
Expand Down Expand Up @@ -618,7 +622,7 @@ msgstr ""
msgid ""
"You can use `%%` operator or `@@` operator for full text search. The full text"
" search doesn't care about the position of element."
msgstr ""
msgstr "全文検索には`%%`演算子または`@@`演算子を使えます。全文検索では何番目の要素かは考慮しません。"

msgid ""
"```sql\n"
Expand All @@ -636,7 +640,7 @@ msgid ""
msgstr ""

msgid "### How to use PGroonga for `varchar` type of array"
msgstr ""
msgstr "### `varchar`型の配列に対してPGroongaを使う方法"

msgid ""
"```sql\n"
Expand Down Expand Up @@ -673,7 +677,7 @@ msgid ""
"You can use `%%` operator to find records that have one or more matched elemen"
"ts. If element's value equals to queried value, the element is treated as matc"
"hed."
msgstr ""
msgstr "指定した要素を含んだレコードを見つけるには`%%`演算子を使います。もし、要素の値が指定した値と等しければその要素はマッチしたことになります。"

msgid ""
"```sql\n"
Expand Down
20 changes: 10 additions & 10 deletions ja/tutorial/index.md
Expand Up @@ -334,18 +334,18 @@ SELECT * FROM tags WHERE tag = 'Groonga';
--
```

## How to use PGroonga for array
## 配列に対してPGroongaを使う方法

You can use PGroonga as an index for array of `text` type or array of `varchar`.
`text`型の配列または`varchar`型の配列のインデックスとしてPGroongaを使うことができます。

You can perform full text search against array of `text` type. If one or more elements in an array are matched, the record is matched.
`text`型の配列に対して全文検索することができます。配列の中の1つ以上の要素がマッチしたらそのレコードはマッチしたことになります。

You can perform equality condition against array of `varchar` type. If one or more elements in an array are matched, the record is matched. It's useful for tag search.
`varchar`型の配列に対して等価条件で検索することができます。配列の中の1つ以上の要素がマッチしたらそのレコードはマッチしたことになります。これはタグ検索で有用です。

* How to use PGroonga for `text` type of array
* How to use PGroonga for `varchar` type of array
* `text`型の配列に対してPGroongaを使う方法
* `varchar`型の配列に対してPGroongaを使う方法

### How to use PGroonga for `text` type of array
### `text`型の配列に対してPGroongaを使う方法

`USING pgroonga`付きでインデックスを作成します。

Expand Down Expand Up @@ -375,7 +375,7 @@ INSERT INTO docs
'PostgreSQLに高機能な全文検索機能を追加します。']);
```

You can use `%%` operator or `@@` operator for full text search. The full text search doesn't care about the position of element.
全文検索には`%%`演算子または`@@`演算子を使えます。全文検索では何番目の要素かは考慮しません。

```sql
SELECT * FROM docs WHERE sections %% '全文検索';
Expand All @@ -387,7 +387,7 @@ SELECT * FROM docs WHERE sections %% '全文検索';
-- (3 rows)
```

### How to use PGroonga for `varchar` type of array
### `varchar`型の配列に対してPGroongaを使う方法

`USING pgroonga`付きでインデックスを作成します。

Expand Down Expand Up @@ -418,7 +418,7 @@ INSERT INTO products
ARRAY['PostgreSQL', 'Groonga', 'full-text search']);
```

You can use `%%` operator to find records that have one or more matched elements. If element's value equals to queried value, the element is treated as matched.
指定した要素を含んだレコードを見つけるには`%%`演算子を使います。もし、要素の値が指定した値と等しければその要素はマッチしたことになります。

```sql
SELECT * FROM products WHERE tags %% 'PostgreSQL';
Expand Down

0 comments on commit 1eddca9

Please sign in to comment.