Navigation Menu

Skip to content

Commit

Permalink
Use site.postgresql_short_version instead of current
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 25, 2015
1 parent 65eb20d commit afa1db3
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 26 deletions.
8 changes: 5 additions & 3 deletions _po/ja/overview/index.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-10-15 22:58+0900\n"
"PO-Revision-Date: 2015-10-25 20:59+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -63,11 +63,13 @@ msgid ""
msgstr "あらゆる言語をサポートした全文検索を実現するための拡張機能がいくつかあります。"

msgid ""
" * [pg_trgm](http://www.postgresql.org/docs/current/static/pgtrgm.html)\n"
" * [pg_trgm](http://www.postgresql.org/docs/{{ site.postgresql_short_version "
"}}/static/pgtrgm.html)\n"
" * It's bundled with PostgreSQL but it's not installed as default.\n"
" * You need to change pg\\_trgm source code to support all languages."
msgstr ""
" * [pg_trgm](http://www.postgresql.org/docs/current/static/pgtrgm.html)\n"
" * [pg_trgm](http://www.postgresql.jp/document/{{ site.postgresql_short_versi"
"on }}/html/pgtrgm.html)\n"
" * PostgreSQLにバンドルされていますが、デフォルトではインストールされていません。\n"
" * あらゆる言語に対応するためにはpg\\_trgmのソースコードを変更する必要があります。"

Expand Down
10 changes: 5 additions & 5 deletions _po/ja/reference/functions/pgroonga-command.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-10-24 15:46+0900\n"
"PO-Revision-Date: 2015-10-25 21:00+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -52,12 +52,12 @@ msgstr "`command`は`text`型の値です。`pgroonga.command`は`command`をGro
msgid ""
"Groonga command returns result as JSON. `pgroonga.command` returns the JSON as"
" `text` type value. You can use [JSON functions and operations provided by Pos"
"tgreSQL](http://www.postgresql.org/docs/current/static/functions-json.html) by"
" casting the result to `json` or `jsonb` type."
"tgreSQL](http://www.postgresql.org/docs/{{ site.postgresql_short_version }}/st"
"atic/functions-json.html) by casting the result to `json` or `jsonb` type."
msgstr ""
"Groongaのコマンドは結果をJSONとして返します。`pgroonga.command`はJSONを`text`型の値として返します。結果を`json`"
"型か`jsonb`型にキャストすると[PostgreSQLが提供するJSON関数・演算](http://www.postgresql.org/docs/cu"
"rrent/static/functions-json.html)を使うことができます。"
"型か`jsonb`型にキャストすると[PostgreSQLが提供するJSON関数・演算](http://www.postgresql.jp/document"
"/{{ site.postgresql_short_version }}/static/functions-json.html)を使うことができます。"

msgid "## Usage"
msgstr "## 使い方"
Expand Down
21 changes: 11 additions & 10 deletions _po/ja/tutorial/index.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-10-24 09:27+0900\n"
"PO-Revision-Date: 2015-10-25 21:01+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -381,12 +381,12 @@ msgstr "この関数はすべてのテキストに対して使うことができ
msgid ""
"Here is a sample SQL that describes about it. You can use the function in the "
"following `SELECT` that doesn't have `FROM`. Note that [`unnest`](http://www.p"
"ostgresql.org/docs/current/static/functions-array.html) is a PostgreSQL functi"
"on that converts an array to rows."
"ostgresql.org/docs/{{ site.postgresql_short_version }}/static/functions-array."
"html) is a PostgreSQL function that converts an array to rows."
msgstr ""
"この挙動を説明するサンプルSQLは次の通りです。`FROM`がない次の`SELECT`でもこの関数を使えます。[`unnest`](http://www.p"
"ostgresql.jp/document/current/html/functions-array.html)は配列を列に変換するPostgreSQLの関"
"数であることに注意してください。"
"ostgresql.jp/document/{{ site.postgresql_short_version }}/html/functions-array"
".html)は配列を列に変換するPostgreSQLの関数であることに注意してください。"

msgid ""
"```sql\n"
Expand Down Expand Up @@ -743,12 +743,13 @@ msgstr ""

msgid ""
"[`@>` operator is a built-in PostgreSQL operator](http://www.postgresql.org/do"
"cs/current/static/functions-json.html#FUNCTIONS-JSONB-OP-TABLE). `@>` returns "
"true when the right hand side `jsonb` is a subset of left hand side `jsonb`."
"cs/{{ site.postgresql_short_version }}/static/functions-json.html#FUNCTIONS-JS"
"ONB-OP-TABLE). `@>` returns true when the right hand side `jsonb` is a subset "
"of left hand side `jsonb`."
msgstr ""
"[`@>`演算子はPostgreSQL組み込みの演算子](http://www.postgresql.jp/document/current/html/fu"
"nctions-json.html#FUNCTIONS-JSONB-OP-TABLE)です。`@>`は右辺の`jsonb`が左辺の`jsonb`のサブセット"
"なら真を返します。"
"[`@>`演算子はPostgreSQL組み込みの演算子](http://www.postgresql.jp/document/{{ site.postgre"
"sql_short_version }}/html/functions-json.html#FUNCTIONS-JSONB-OP-TABLE)です。`@>`"
"は右辺の`jsonb`が左辺の`jsonb`のサブセットなら真を返します。"

msgid "You can execute `@>` faster by PGroonga."
msgstr "PGroongaを使うことで高速に`@>`を実行出来ます。"
Expand Down
2 changes: 1 addition & 1 deletion ja/overview/index.md
Expand Up @@ -17,7 +17,7 @@ PostgreSQLはアルファベットと数値だけを使った言語の全文検

あらゆる言語をサポートした全文検索を実現するための拡張機能がいくつかあります。

* [pg_trgm](http://www.postgresql.org/docs/current/static/pgtrgm.html)
* [pg_trgm](http://www.postgresql.jp/document/{{ site.postgresql_short_version }}/html/pgtrgm.html)
* PostgreSQLにバンドルされていますが、デフォルトではインストールされていません。
* あらゆる言語に対応するためにはpg\_trgmのソースコードを変更する必要があります。

Expand Down
2 changes: 1 addition & 1 deletion ja/reference/functions/pgroonga-command.md
Expand Up @@ -19,7 +19,7 @@ text pgroonga.command(command)

`command``text`型の値です。`pgroonga.command``command`をGroongaのコマンドとして実行します。

Groongaのコマンドは結果をJSONとして返します。`pgroonga.command`はJSONを`text`型の値として返します。結果を`json`型か`jsonb`型にキャストすると[PostgreSQLが提供するJSON関数・演算](http://www.postgresql.org/docs/current/static/functions-json.html)を使うことができます。
Groongaのコマンドは結果をJSONとして返します。`pgroonga.command`はJSONを`text`型の値として返します。結果を`json`型か`jsonb`型にキャストすると[PostgreSQLが提供するJSON関数・演算](http://www.postgresql.jp/document/{{ site.postgresql_short_version }}/static/functions-json.html)を使うことができます。

## 使い方

Expand Down
4 changes: 2 additions & 2 deletions ja/tutorial/index.md
Expand Up @@ -212,7 +212,7 @@ SELECT *, pgroonga.score(score_memos)
この関数はすべてのテキストに対して使うことができます。PGroongaでの検索結果以外にも使えるということです。

この挙動を説明するサンプルSQLは次の通りです。`FROM`がない次の`SELECT`でもこの関数を使えます。[`unnest`](http://www.postgresql.jp/document/current/html/functions-array.html)は配列を列に変換するPostgreSQLの関数であることに注意してください。
この挙動を説明するサンプルSQLは次の通りです。`FROM`がない次の`SELECT`でもこの関数を使えます。[`unnest`](http://www.postgresql.jp/document/{{ site.postgresql_short_version }}/html/functions-array.html)は配列を列に変換するPostgreSQLの関数であることに注意してください。

```sql
SELECT unnest(pgroonga.snippet_html(
Expand Down Expand Up @@ -456,7 +456,7 @@ PGroongaは`jsonb`に対して検索するために次の2つの演算子を提
* `@>`演算子
* `@@`演算子

[`@>`演算子はPostgreSQL組み込みの演算子](http://www.postgresql.jp/document/current/html/functions-json.html#FUNCTIONS-JSONB-OP-TABLE)です。`@>`は右辺の`jsonb`が左辺の`jsonb`のサブセットなら真を返します。
[`@>`演算子はPostgreSQL組み込みの演算子](http://www.postgresql.jp/document/{{ site.postgresql_short_version }}/html/functions-json.html#FUNCTIONS-JSONB-OP-TABLE)です。`@>`は右辺の`jsonb`が左辺の`jsonb`のサブセットなら真を返します。

PGroongaを使うことで高速に`@>`を実行出来ます。

Expand Down
2 changes: 1 addition & 1 deletion overview/index.md
Expand Up @@ -17,7 +17,7 @@ And more, PGroonga supports full text search against all text values in JSON. It

There are some extensions that implements full text search against all languages:

* [pg_trgm](http://www.postgresql.org/docs/current/static/pgtrgm.html)
* [pg_trgm](http://www.postgresql.org/docs/{{ site.postgresql_short_version }}/static/pgtrgm.html)
* It's bundled with PostgreSQL but it's not installed as default.
* You need to change pg\_trgm source code to support all languages.

Expand Down
2 changes: 1 addition & 1 deletion reference/functions/pgroonga-command.md
Expand Up @@ -19,7 +19,7 @@ text pgroonga.command(command)

`command` is a `text` type value. `pgroonga.command` executes `command` as a Groonga command.

Groonga command returns result as JSON. `pgroonga.command` returns the JSON as `text` type value. You can use [JSON functions and operations provided by PostgreSQL](http://www.postgresql.org/docs/current/static/functions-json.html) by casting the result to `json` or `jsonb` type.
Groonga command returns result as JSON. `pgroonga.command` returns the JSON as `text` type value. You can use [JSON functions and operations provided by PostgreSQL](http://www.postgresql.org/docs/{{ site.postgresql_short_version }}/static/functions-json.html) by casting the result to `json` or `jsonb` type.

## Usage

Expand Down
4 changes: 2 additions & 2 deletions tutorial/index.md
Expand Up @@ -212,7 +212,7 @@ Here is the result of `pgroonga.snippet_html` against the above text:
This function can be used for all texts. It's not only for search result by PGroonga.

Here is a sample SQL that describes about it. You can use the function in the following `SELECT` that doesn't have `FROM`. Note that [`unnest`](http://www.postgresql.org/docs/current/static/functions-array.html) is a PostgreSQL function that converts an array to rows.
Here is a sample SQL that describes about it. You can use the function in the following `SELECT` that doesn't have `FROM`. Note that [`unnest`](http://www.postgresql.org/docs/{{ site.postgresql_short_version }}/static/functions-array.html) is a PostgreSQL function that converts an array to rows.

```sql
SELECT unnest(pgroonga.snippet_html(
Expand Down Expand Up @@ -455,7 +455,7 @@ PGroonga provides the following two operators for searching against `jsonb`:
* `@>` operator
* `@@` operator

[`@>` operator is a built-in PostgreSQL operator](http://www.postgresql.org/docs/current/static/functions-json.html#FUNCTIONS-JSONB-OP-TABLE). `@>` returns true when the right hand side `jsonb` is a subset of left hand side `jsonb`.
[`@>` operator is a built-in PostgreSQL operator](http://www.postgresql.org/docs/{{ site.postgresql_short_version }}/static/functions-json.html#FUNCTIONS-JSONB-OP-TABLE). `@>` returns true when the right hand side `jsonb` is a subset of left hand side `jsonb`.

You can execute `@>` faster by PGroonga.

Expand Down

0 comments on commit afa1db3

Please sign in to comment.