Kouhei Sutou
null+****@clear*****
Wed Aug 16 22:36:45 JST 2017
Kouhei Sutou 2017-08-16 22:36:45 +0900 (Wed, 16 Aug 2017) New Revision: 239b7562265496459360061d0c538e979b54dce5 https://github.com/pgroonga/pgroonga.github.io/commit/239b7562265496459360061d0c538e979b54dce5 Message: Update for 2.0.0 Modified files: _po/ja/reference/functions/pgroonga-command.po _po/ja/reference/index.po ja/reference/functions/pgroonga-command.md ja/reference/index.md reference/functions/pgroonga-command.md reference/index.md Modified: _po/ja/reference/functions/pgroonga-command.po (+33 -31) =================================================================== --- _po/ja/reference/functions/pgroonga-command.po 2017-08-16 22:33:35 +0900 (af475b8) +++ _po/ja/reference/functions/pgroonga-command.po 2017-08-16 22:36:45 +0900 (f6f16fa) @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"PO-Revision-Date: 2016-12-05 15:46+0900\n" +"PO-Revision-Date: 2017-08-16 22:36+0900\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -10,26 +10,26 @@ msgstr "" msgid "" "---\n" -"title: pgroonga.command function\n" +"title: pgroonga_command function\n" "upper_level: ../\n" "---" msgstr "" "---\n" -"title: pgroonga.command関数\n" +"title: pgroonga_command関数\n" "upper_level: ../\n" "---" -msgid "# `pgroonga.command` function" -msgstr "# `pgroonga.command`関数" +msgid "# `pgroonga_command` function" +msgstr "# `pgroonga_command`関数" msgid "## Summary" msgstr "## 概要" msgid "" -"`pgroonga.command` function executes a [Groonga command](http://groonga.org/do" +"`pgroonga_command` function executes a [Groonga command](http://groonga.org/do" "cs/reference/command.html) and returns the result as `text` type value." msgstr "" -"`pgroonga.command`関数は[Groongaのコマンド](http://groonga.org/ja/docs/reference/comma" +"`pgroonga_command`関数は[Groongaのコマンド](http://groonga.org/ja/docs/reference/comma" "nd.html)を実行して`text`型の値として結果を返します。" msgid "## Syntax" @@ -40,21 +40,21 @@ msgstr "この関数の構文は次の通りです。" msgid "" "```text\n" -"text pgroonga.command(command)\n" +"text pgroonga_command(command)\n" "```" msgstr "" msgid "" -"`command` is a `text` type value. `pgroonga.command` executes `command` as a G" +"`command` is a `text` type value. `pgroonga_command` executes `command` as a G" "roonga command." -msgstr "`command`は`text`型の値です。`pgroonga.command`は`command`をGroongaのコマンドとして実行します。" +msgstr "`command`は`text`型の値です。`pgroonga_command`は`command`をGroongaのコマンドとして実行します。" msgid "Here is another syntax of this function. It can be used since 1.1.9:" msgstr "この関数にはもうひとつ構文があります。これは1.1.9以降で使えます。" msgid "" "```text\n" -"text pgroonga.command(name,\n" +"text pgroonga_command(name,\n" " ARRAY[argument_name1, argument_value1,\n" " argument_name2, argument_value2,\n" " ...])\n" @@ -80,19 +80,19 @@ msgid "" msgstr "`argument_value`は`text`型の値です。直前にした引数名に対応する値です。" msgid "" -"`pgroonga.command` builds a Groonga command from `name` and `argument_name`s a" +"`pgroonga_command` builds a Groonga command from `name` and `argument_name`s a" "nd `argument_value`s and executes the built Groonga command." msgstr "" -"`pgroonga.command`は`name`と`argument_name`と`argument_value`からGroongaコマンドを作り、そのG" +"`pgroonga_command`は`name`と`argument_name`と`argument_value`からGroongaコマンドを作り、そのG" "roongaコマンドを実行します。" msgid "" -"Groonga command returns result as JSON. `pgroonga.command` returns the JSON as" +"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]({{ site.postgresql_doc_base_url.en }}/functions-json.html) by casting" " the result to `json` or `jsonb` type." msgstr "" -"Groongaのコマンドは結果をJSONとして返します。`pgroonga.command`はJSONを`text`型の値として返します。結果を`json`" +"Groongaのコマンドは結果をJSONとして返します。`pgroonga_command`はJSONを`text`型の値として返します。結果を`json`" "型か`jsonb`型にキャストすると[PostgreSQLが提供するJSON関数・演算]({{ site.postgresql_doc_base_url.j" "a }}/functions-json.html)を使うことができます。" @@ -129,7 +129,7 @@ msgstr "" msgid "" "```sql\n" -"SELECT jsonb_pretty(pgroonga.command('status')::jsonb);\n" +"SELECT jsonb_pretty(pgroonga_command('status')::jsonb);\n" "-- jsonb_pretty \n" "-- -----------------------------------------\n" "-- [ +\n" @@ -158,19 +158,19 @@ msgstr "" msgid "" "Here is an example to search inserted data. You can use [`select` Groonga comm" "and](http://groonga.org/docs/reference/commands/select.html) for the purpose. " -"You need to convert PGroonga index name to Groonga table name by [`pgroonga.ta" +"You need to convert PGroonga index name to Groonga table name by [`pgroonga_ta" "ble_name` function](pgroonga-table-name.html)." msgstr "" "以下は挿入したデータを検索する例です。検索には[`select` Groongaコマンド](http://groonga.org/ja/docs/refer" -"ence/commands/select.html)を使います。[`pgroonga.table_name`関数](pgroonga-table-name." +"ence/commands/select.html)を使います。[`pgroonga_table_name`関数](pgroonga-table-name." "html)を使ってPGroongaのインデックス名をGroongaのテーブル名に変換する必要があります。" msgid "" "```sql\n" "SELECT jsonb_pretty(\n" -" pgroonga.command(\n" +" pgroonga_command(\n" " 'select ' ||\n" -" '--table ' || pgroonga.table_name('pgroonga_memos_index')\n" +" '--table ' || pgroonga_table_name('pgroonga_memos_index')\n" " )::jsonb\n" ");\n" "-- jsonb_pretty \n" @@ -223,9 +223,9 @@ msgstr "" msgid "" "```sql\n" "SELECT jsonb_pretty(\n" -" pgroonga.command(\n" +" pgroonga_command(\n" " 'select ' ||\n" -" '--table ' || pgroonga.table_name('pgroonga_memos_index') || ' ' ||\n" +" '--table ' || pgroonga_table_name('pgroonga_memos_index') || ' ' ||\n" " '--match_columns content ' ||\n" " '--query \"PostgreSQL Groonga\"'\n" " )::jsonb\n" @@ -275,10 +275,10 @@ msgstr "引数を配列で指定するスタイルと使うと、ダブルクォ msgid "" "```sql\n" "SELECT jsonb_pretty(\n" -" pgroonga.command(\n" +" pgroonga_command(\n" " 'select',\n" " ARRAY[\n" -" 'table', pgroonga.table_name('pgroonga_memos_index'),\n" +" 'table', pgroonga_table_name('pgroonga_memos_index'),\n" " 'match_columns', 'content',\n" " 'query', 'PostgreSQL Groonga'\n" " ]\n" @@ -346,12 +346,14 @@ msgstr "## 参考" msgid " * [Examples in tutorial](../../tutorial/#groonga)" msgstr " * [チュートリアルにある例](../../tutorial/#groonga)" -msgid " * [`pgroonga.table_name` function](pgroonga-table-name.html)" -msgstr " * [`pgroonga.table_name`関数](pgroonga-table-name.html)" +msgid " * [`pgroonga_table_name` function][table-name]" +msgstr " * [`pgroonga_table_name`関数][table-name]" -msgid "" -" * [`pgroonga_tuple_is_alive` Groonga function](../groonga-functions/pgroonga" -"-tuple-is-alive.html)" +msgid " * [`pgroonga_tuple_is_alive` Groonga function][tuple-is-alive]" +msgstr " * [`pgroonga_tuple_is_alive` Groonga関数][tuple-is-alive]" + +msgid "[table-name]:pgroonga-table-name.html" +msgstr "" + +msgid "[tuple-is-alive]:../groonga-functions/pgroonga-tuple-is-alive.html" msgstr "" -" * [`pgroonga_tuple_is_alive` Groonga関数](../groonga-functions/pgroonga-tuple-" -"is-alive.html)" Modified: _po/ja/reference/index.po (+6 -7) =================================================================== --- _po/ja/reference/index.po 2017-08-16 22:33:35 +0900 (2a132d2) +++ _po/ja/reference/index.po 2017-08-16 22:36:45 +0900 (f966bf5) @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"PO-Revision-Date: 2017-08-16 22:33+0900\n" +"PO-Revision-Date: 2017-08-16 22:35+0900\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -551,12 +551,8 @@ msgstr "" "[`pgroonga_command`関数](functions/pgroonga-command.html)内で以下のGroongaの関数を使えます。`W" "HERE`節では使えません。" -msgid "" -" * [`pgroonga_tuple_is_alive` Groonga function](groonga-functions/pgroonga-tu" -"ple-is-alive.html)" -msgstr "" -" * [`pgroonga_tuple_is_alive` Groonga関数](groonga-functions/pgroonga-tuple-is-" -"alive.html)" +msgid " * [`pgroonga_tuple_is_alive` Groonga function][tuple-is-alive]" +msgstr " * [`pgroonga_tuple_is_alive` Groonga関数][tuple-is-alive]" msgid "## Tuning" msgstr "## チューニング" @@ -630,3 +626,6 @@ msgid "" "[table-name]:functions/pgroonga-table-name.html\n" "[query-expand]:functions/pgroonga-query-expand.html" msgstr "" + +msgid "[tuple-is-alive]:groonga-functions/pgroonga-tuple-is-alive.html" +msgstr "" Modified: ja/reference/functions/pgroonga-command.md (+22 -18) =================================================================== --- ja/reference/functions/pgroonga-command.md 2017-08-16 22:33:35 +0900 (ea8c873) +++ ja/reference/functions/pgroonga-command.md 2017-08-16 22:36:45 +0900 (88cf4f2) @@ -1,28 +1,28 @@ --- -title: pgroonga.command関数 +title: pgroonga_command関数 upper_level: ../ --- -# `pgroonga.command`関数 +# `pgroonga_command`関数 ## 概要 -`pgroonga.command`関数は[Groongaのコマンド](http://groonga.org/ja/docs/reference/command.html)を実行して`text`型の値として結果を返します。 +`pgroonga_command`関数は[Groongaのコマンド](http://groonga.org/ja/docs/reference/command.html)を実行して`text`型の値として結果を返します。 ## 構文 この関数の構文は次の通りです。 ```text -text pgroonga.command(command) +text pgroonga_command(command) ``` -`command`は`text`型の値です。`pgroonga.command`は`command`をGroongaのコマンドとして実行します。 +`command`は`text`型の値です。`pgroonga_command`は`command`をGroongaのコマンドとして実行します。 この関数にはもうひとつ構文があります。これは1.1.9以降で使えます。 ```text -text pgroonga.command(name, +text pgroonga_command(name, ARRAY[argument_name1, argument_value1, argument_name2, argument_value2, ...]) @@ -36,9 +36,9 @@ text pgroonga.command(name, `argument_value`は`text`型の値です。直前にした引数名に対応する値です。 -`pgroonga.command`は`name`と`argument_name`と`argument_value`からGroongaコマンドを作り、そのGroongaコマンドを実行します。 +`pgroonga_command`は`name`と`argument_name`と`argument_value`からGroongaコマンドを作り、そのGroongaコマンドを実行します。 -Groongaのコマンドは結果をJSONとして返します。`pgroonga.command`はJSONを`text`型の値として返します。結果を`json`型か`jsonb`型にキャストすると[PostgreSQLが提供するJSON関数・演算]({{ site.postgresql_doc_base_url.ja }}/functions-json.html)を使うことができます。 +Groongaのコマンドは結果をJSONとして返します。`pgroonga_command`はJSONを`text`型の値として返します。結果を`json`型か`jsonb`型にキャストすると[PostgreSQLが提供するJSON関数・演算]({{ site.postgresql_doc_base_url.ja }}/functions-json.html)を使うことができます。 ## 使い方 @@ -59,7 +59,7 @@ INSERT INTO memos VALUES ('PGroonga (PostgreSQL+Groonga) is great!'); 以下は[`status` Groongaコマンド](http://groonga.org/ja/docs/reference/commands/status.html)の実行例です。このコマンドには引数はありません。 ```sql -SELECT jsonb_pretty(pgroonga.command('status')::jsonb); +SELECT jsonb_pretty(pgroonga_command('status')::jsonb); -- jsonb_pretty -- ----------------------------------------- -- [ + @@ -84,13 +84,13 @@ SELECT jsonb_pretty(pgroonga.command('status')::jsonb); -- (1 row) ``` -以下は挿入したデータを検索する例です。検索には[`select` Groongaコマンド](http://groonga.org/ja/docs/reference/commands/select.html)を使います。[`pgroonga.table_name`関数](pgroonga-table-name.html)を使ってPGroongaのインデックス名をGroongaのテーブル名に変換する必要があります。 +以下は挿入したデータを検索する例です。検索には[`select` Groongaコマンド](http://groonga.org/ja/docs/reference/commands/select.html)を使います。[`pgroonga_table_name`関数](pgroonga-table-name.html)を使ってPGroongaのインデックス名をGroongaのテーブル名に変換する必要があります。 ```sql SELECT jsonb_pretty( - pgroonga.command( + pgroonga_command( 'select ' || - '--table ' || pgroonga.table_name('pgroonga_memos_index') + '--table ' || pgroonga_table_name('pgroonga_memos_index') )::jsonb ); -- jsonb_pretty @@ -135,9 +135,9 @@ SELECT jsonb_pretty( ```sql SELECT jsonb_pretty( - pgroonga.command( + pgroonga_command( 'select ' || - '--table ' || pgroonga.table_name('pgroonga_memos_index') || ' ' || + '--table ' || pgroonga_table_name('pgroonga_memos_index') || ' ' || '--match_columns content ' || '--query "PostgreSQL Groonga"' )::jsonb @@ -184,10 +184,10 @@ SELECT jsonb_pretty( ```sql SELECT jsonb_pretty( - pgroonga.command( + pgroonga_command( 'select', ARRAY[ - 'table', pgroonga.table_name('pgroonga_memos_index'), + 'table', pgroonga_table_name('pgroonga_memos_index'), 'match_columns', 'content', 'query', 'PostgreSQL Groonga' ] @@ -241,6 +241,10 @@ SELECT jsonb_pretty( * [チュートリアルにある例](../../tutorial/#groonga) - * [`pgroonga.table_name`関数](pgroonga-table-name.html) + * [`pgroonga_table_name`関数][table-name] - * [`pgroonga_tuple_is_alive` Groonga関数](../groonga-functions/pgroonga-tuple-is-alive.html) + * [`pgroonga_tuple_is_alive` Groonga関数][tuple-is-alive] + +[table-name]:pgroonga-table-name.html + +[tuple-is-alive]:../groonga-functions/pgroonga-tuple-is-alive.html Modified: ja/reference/index.md (+3 -1) =================================================================== --- ja/reference/index.md 2017-08-16 22:33:35 +0900 (06212a6) +++ ja/reference/index.md 2017-08-16 22:36:45 +0900 (2fd52f0) @@ -519,7 +519,7 @@ PGroongaは`pgroonga`スキーマに関数・演算子・演算子クラスな [`pgroonga_command`関数](functions/pgroonga-command.html)内で以下のGroongaの関数を使えます。`WHERE`節では使えません。 - * [`pgroonga_tuple_is_alive` Groonga関数](groonga-functions/pgroonga-tuple-is-alive.html) + * [`pgroonga_tuple_is_alive` Groonga関数][tuple-is-alive] ## チューニング @@ -571,3 +571,5 @@ PGroongaは`pgroonga`スキーマに関数・演算子・演算子クラスな [snippet-html]:functions/pgroonga-snippet-html.html [table-name]:functions/pgroonga-table-name.html [query-expand]:functions/pgroonga-query-expand.html + +[tuple-is-alive]:groonga-functions/pgroonga-tuple-is-alive.html Modified: reference/functions/pgroonga-command.md (+22 -18) =================================================================== --- reference/functions/pgroonga-command.md 2017-08-16 22:33:35 +0900 (9f9d108) +++ reference/functions/pgroonga-command.md 2017-08-16 22:36:45 +0900 (dc92501) @@ -1,28 +1,28 @@ --- -title: pgroonga.command function +title: pgroonga_command function upper_level: ../ --- -# `pgroonga.command` function +# `pgroonga_command` function ## Summary -`pgroonga.command` function executes a [Groonga command](http://groonga.org/docs/reference/command.html) and returns the result as `text` type value. +`pgroonga_command` function executes a [Groonga command](http://groonga.org/docs/reference/command.html) and returns the result as `text` type value. ## Syntax Here is the syntax of this function: ```text -text pgroonga.command(command) +text pgroonga_command(command) ``` -`command` is a `text` type value. `pgroonga.command` executes `command` as a Groonga command. +`command` is a `text` type value. `pgroonga_command` executes `command` as a Groonga command. Here is another syntax of this function. It can be used since 1.1.9: ```text -text pgroonga.command(name, +text pgroonga_command(name, ARRAY[argument_name1, argument_value1, argument_name2, argument_value2, ...]) @@ -36,9 +36,9 @@ The second syntax is recommended because it escapes argument values automaticall `argument_value` is a `text` type value. It's an argument value of the preceding argument name. -`pgroonga.command` builds a Groonga command from `name` and `argument_name`s and `argument_value`s and executes the built Groonga command. +`pgroonga_command` builds a Groonga command from `name` and `argument_name`s and `argument_value`s and executes the built 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]({{ site.postgresql_doc_base_url.en }}/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]({{ site.postgresql_doc_base_url.en }}/functions-json.html) by casting the result to `json` or `jsonb` type. ## Usage @@ -59,7 +59,7 @@ INSERT INTO memos VALUES ('PGroonga (PostgreSQL+Groonga) is great!'); Here is an example to run [`status` Groonga command](http://groonga.org/en/docs/reference/commands/status.html) that doesn't have any arguments: ```sql -SELECT jsonb_pretty(pgroonga.command('status')::jsonb); +SELECT jsonb_pretty(pgroonga_command('status')::jsonb); -- jsonb_pretty -- ----------------------------------------- -- [ + @@ -84,13 +84,13 @@ SELECT jsonb_pretty(pgroonga.command('status')::jsonb); -- (1 row) ``` -Here is an example to search inserted data. You can use [`select` Groonga command](http://groonga.org/docs/reference/commands/select.html) for the purpose. You need to convert PGroonga index name to Groonga table name by [`pgroonga.table_name` function](pgroonga-table-name.html). +Here is an example to search inserted data. You can use [`select` Groonga command](http://groonga.org/docs/reference/commands/select.html) for the purpose. You need to convert PGroonga index name to Groonga table name by [`pgroonga_table_name` function](pgroonga-table-name.html). ```sql SELECT jsonb_pretty( - pgroonga.command( + pgroonga_command( 'select ' || - '--table ' || pgroonga.table_name('pgroonga_memos_index') + '--table ' || pgroonga_table_name('pgroonga_memos_index') )::jsonb ); -- jsonb_pretty @@ -135,9 +135,9 @@ Here is an example that searches records that contains "PostgreSQL" and "Groonga ```sql SELECT jsonb_pretty( - pgroonga.command( + pgroonga_command( 'select ' || - '--table ' || pgroonga.table_name('pgroonga_memos_index') || ' ' || + '--table ' || pgroonga_table_name('pgroonga_memos_index') || ' ' || '--match_columns content ' || '--query "PostgreSQL Groonga"' )::jsonb @@ -184,10 +184,10 @@ If you use arguments array style, you don't need to care about quoting: ```sql SELECT jsonb_pretty( - pgroonga.command( + pgroonga_command( 'select', ARRAY[ - 'table', pgroonga.table_name('pgroonga_memos_index'), + 'table', pgroonga_table_name('pgroonga_memos_index'), 'match_columns', 'content', 'query', 'PostgreSQL Groonga' ] @@ -241,6 +241,10 @@ See [`pgroonga_tuple_is_alive` Groonga function](../groonga-functions/pgroonga-t * [Examples in tutorial](../../tutorial/#groonga) - * [`pgroonga.table_name` function](pgroonga-table-name.html) + * [`pgroonga_table_name` function][table-name] - * [`pgroonga_tuple_is_alive` Groonga function](../groonga-functions/pgroonga-tuple-is-alive.html) + * [`pgroonga_tuple_is_alive` Groonga function][tuple-is-alive] + +[table-name]:pgroonga-table-name.html + +[tuple-is-alive]:../groonga-functions/pgroonga-tuple-is-alive.html Modified: reference/index.md (+3 -1) =================================================================== --- reference/index.md 2017-08-16 22:33:35 +0900 (4886e05) +++ reference/index.md 2017-08-16 22:36:45 +0900 (13a7ef2) @@ -518,7 +518,7 @@ Use [`pgroonga_jsonb_ops_v2` operator class](#text-jsonb-ops-v2) instead. You can use them with [`pgroonga_command` function](functions/pgroonga-command.html). You can't use them in `WHERE` clause. - * [`pgroonga_tuple_is_alive` Groonga function](groonga-functions/pgroonga-tuple-is-alive.html) + * [`pgroonga_tuple_is_alive` Groonga function][tuple-is-alive] ## Tuning @@ -570,3 +570,5 @@ But you need to tune PGroonga in some cases such as a case that you need to hand [snippet-html]:functions/pgroonga-snippet-html.html [table-name]:functions/pgroonga-table-name.html [query-expand]:functions/pgroonga-query-expand.html + +[tuple-is-alive]:groonga-functions/pgroonga-tuple-is-alive.html -------------- next part -------------- HTML����������������������������... Download