Navigation Menu

Skip to content

Commit

Permalink
Use English data for tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 25, 2015
1 parent 158af21 commit be5638f
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 65 deletions.
139 changes: 125 additions & 14 deletions _po/ja/tutorial/index.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-10-25 21:01+0900\n"
"PO-Revision-Date: 2015-10-25 21:33+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -120,13 +120,22 @@ msgstr "テストデータを挿入します。"

msgid ""
"```sql\n"
"INSERT INTO memos VALUES (1, 'PostgreSQL is a relational database management s"
"ystem.');\n"
"INSERT INTO memos VALUES (2, 'Groonga is a fast full text search engine that s"
"upports all languages.');\n"
"INSERT INTO memos VALUES (3, 'PGroonga is a PostgreSQL extension that uses Gro"
"onga as index.');\n"
"INSERT INTO memos VALUES (4, 'There is groonga command.');\n"
"```"
msgstr ""
"```sql\n"
"INSERT INTO memos VALUES (1, 'PostgreSQLはリレーショナル・データベース管理システムです。');\n"
"INSERT INTO memos VALUES (2, 'Groongaは日本語対応の高速な全文検索エンジンです。');\n"
"INSERT INTO memos VALUES (3, 'PGroongaはインデックスとしてGroongaを使うためのPostgreSQLの拡張機能です"
"。');\n"
"INSERT INTO memos VALUES (4, 'groongaコマンドがあります。');\n"
"```"
msgstr ""

msgid "Disable sequential scan to ensure using `pgroonga` index:"
msgstr "確実に`pgroonga`インデックスを使うためにシーケンシャルスキャンを無効にします。"
Expand Down Expand Up @@ -162,16 +171,24 @@ msgstr "1語で全文検索を実行する場合は`%%`演算子を使います

msgid ""
"```sql\n"
"SELECT * FROM memos WHERE content %% '全文検索';"
"SELECT * FROM memos WHERE content %% 'engine';\n"
"-- id | content "
" \n"
"-- ----+----------------------------------------------------------------------"
"--\n"
"-- 2 | Groonga is a fast full text search engine that supports all languages"
".\n"
"-- (1 row)\n"
"```"
msgstr ""

msgid ""
"```sql\n"
"SELECT * FROM memos WHERE content %% '全文検索';\n"
"\n"
"-- id | content\n"
"-- ----+---------------------------------------------------\n"
"-- 2 | Groongaは日本語対応の高速な全文検索エンジンです。\n"
"-- (1 row)\n"
"```"
msgstr ""

msgid "See [`%%` operator](../reference/operators/match.html) for more details."
msgstr "詳細は[`%%` operator](../reference/operators/match.html)を参照してください。"
Expand All @@ -187,14 +204,22 @@ msgstr "`キーワード1 OR キーワード2`というようなクエリー構
msgid ""
"```sql\n"
"SELECT * FROM memos WHERE content @@ 'PGroonga OR PostgreSQL';\n"
"-- id | content \n"
"-- ----+----------------------------------------------------------------\n"
"-- 3 | PGroonga is a PostgreSQL extension that uses Groonga as index.\n"
"-- 1 | PostgreSQL is a relational database management system.\n"
"-- (2 rows)\n"
"```"
msgstr ""
"```sql\n"
"SELECT * FROM memos WHERE content @@ 'PGroonga OR PostgreSQL';\n"
"-- id | content\n"
"-- ----+----------------------------------------------------------------------"
"-----\n"
"-- 3 | PGroongaはインデックスとしてGroongaを使うためのPostgreSQLの拡張機能です。\n"
"-- 1 | PostgreSQLはリレーショナル・データベース管理システムです。\n"
"-- (2 rows)\n"
"```"
msgstr ""

msgid ""
"Query syntax is similar to syntax of Web search engine. For example, you can u"
Expand Down Expand Up @@ -270,13 +295,22 @@ msgstr ""

msgid ""
"```sql\n"
"INSERT INTO score_memos VALUES (1, 'PostgreSQL is a relational database manage"
"ment system.');\n"
"INSERT INTO score_memos VALUES (2, 'Groonga is a fast full text search engine "
"that supports all languages.');\n"
"INSERT INTO score_memos VALUES (3, 'PGroonga is a PostgreSQL extension that us"
"es Groonga as index.');\n"
"INSERT INTO score_memos VALUES (4, 'There is groonga command.');\n"
"```"
msgstr ""
"```sql\n"
"INSERT INTO score_memos VALUES (1, 'PostgreSQLはリレーショナル・データベース管理システムです。');\n"
"INSERT INTO score_memos VALUES (2, 'Groongaは日本語対応の高速な全文検索エンジンです。');\n"
"INSERT INTO score_memos VALUES (3, 'PGroongaはインデックスとしてGroongaを使うためのPostgreSQLの"
"拡張機能です。');\n"
"INSERT INTO score_memos VALUES (4, 'groongaコマンドがあります。');\n"
"```"
msgstr ""

msgid "Perform full text search and get score."
msgstr "全文検索を実行してスコアーを取得します。"
Expand All @@ -286,6 +320,21 @@ msgid ""
"SELECT *, pgroonga.score(score_memos)\n"
" FROM score_memos\n"
" WHERE content %% 'PGroonga' OR content %% 'PostgreSQL';\n"
"-- id | content | scor"
"e \n"
"-- ----+----------------------------------------------------------------+-----"
"--\n"
"-- 1 | PostgreSQL is a relational database management system. | "
"1\n"
"-- 3 | PGroonga is a PostgreSQL extension that uses Groonga as index. | "
"2\n"
"-- (2 rows)\n"
"```"
msgstr ""
"```sql\n"
"SELECT *, pgroonga.score(score_memos)\n"
" FROM score_memos\n"
" WHERE content %% 'PGroonga' OR content %% 'PostgreSQL';\n"
"-- id | content "
" | score \n"
"-- ----+----------------------------------------------------------------------"
Expand All @@ -294,7 +343,6 @@ msgid ""
"-- 3 | PGroongaはインデックスとしてGroongaを使うためのPostgreSQLの拡張機能です。 | 2\n"
"-- (2 rows)\n"
"```"
msgstr ""

msgid ""
"You can sort matched records by precision ascending by using `pgroonga.score` "
Expand All @@ -307,6 +355,22 @@ msgid ""
" FROM score_memos\n"
" WHERE content %% 'PGroonga' OR content %% 'PostgreSQL'\n"
" ORDER BY pgroonga.score(score_memos) DESC;\n"
"-- id | content | scor"
"e \n"
"-- ----+----------------------------------------------------------------+-----"
"--\n"
"-- 3 | PGroonga is a PostgreSQL extension that uses Groonga as index. | "
"2\n"
"-- 1 | PostgreSQL is a relational database management system. | "
"1\n"
"-- (2 rows)\n"
"```"
msgstr ""
"```sql\n"
"SELECT *, pgroonga.score(score_memos)\n"
" FROM score_memos\n"
" WHERE content %% 'PGroonga' OR content %% 'PostgreSQL'\n"
" ORDER BY pgroonga.score(score_memos) DESC;\n"
"-- id | content "
" | score \n"
"-- ----+----------------------------------------------------------------------"
Expand All @@ -315,7 +379,6 @@ msgid ""
"-- 1 | PostgreSQLはリレーショナル・データベース管理システムです。 | 1\n"
"-- (2 rows)\n"
"```"
msgstr ""

msgid ""
"See [`pgroonga.score` function](../reference/functions/pgroonga-score.html) fo"
Expand Down Expand Up @@ -606,6 +669,24 @@ msgid ""
"```sql\n"
"INSERT INTO docs\n"
" VALUES (1,\n"
" ARRAY['PostgreSQL is a relational database management system.',\n"
" 'PostgreSQL supports full text search partially.']);\n"
"INSERT INTO docs\n"
" VALUES (2,\n"
" ARRAY['Groonga is a fast full text search engine that supports al"
"l languages.',\n"
" 'Groonga can be embedded into other systems.']);\n"
"INSERT INTO docs\n"
" VALUES (3,\n"
" ARRAY['PGroonga is a PostgreSQL extension that uses Groonga as in"
"dex.',\n"
" 'It adds powerful full text search feature to PostgreSQL.']"
");\n"
"```"
msgstr ""
"```sql\n"
"INSERT INTO docs\n"
" VALUES (1,\n"
" ARRAY['PostgreSQLはリレーショナル・データベース管理システムです。',\n"
" 'PostgreSQLは部分的に全文検索をサポートしています。']);\n"
"INSERT INTO docs\n"
Expand All @@ -617,7 +698,6 @@ msgid ""
" ARRAY['PGroongaはインデックスとしてGroongaを使うためのPostgreSQLの拡張機能です。',\n"
" 'PostgreSQLに高機能な全文検索機能を追加します。']);\n"
"```"
msgstr ""

msgid ""
"You can use `%%` operator or `@@` operator for full text search. The full text"
Expand All @@ -626,6 +706,21 @@ msgstr "全文検索には`%%`演算子または`@@`演算子を使えます。

msgid ""
"```sql\n"
"SELECT * FROM docs WHERE sections %% 'text';\n"
"-- id | sections "
" \n"
"-- ----+----------------------------------------------------------------------"
"---------------------------------------------------------\n"
"-- 1 | {\"PostgreSQL is a relational database management system.\",\"PostgreSQL"
" supports full text search partially.\"}\n"
"-- 2 | {\"Groonga is a fast full text search engine that supports all languag"
"es.\",\"Groonga can be embedded into other systems.\"}\n"
"-- 3 | {\"PGroonga is a PostgreSQL extension that uses Groonga as index.\",\"It"
" adds powerful full text search feature to PostgreSQL.\"}\n"
"-- (3 rows)\n"
"```"
msgstr ""
"```sql\n"
"SELECT * FROM docs WHERE sections %% '全文検索';\n"
"-- id | sections "
" \n"
Expand All @@ -637,7 +732,6 @@ msgid ""
"索機能を追加します。}\n"
"-- (3 rows)\n"
"```"
msgstr ""

msgid "### How to use PGroonga for `varchar` type of array"
msgstr "### `varchar`型の配列に対してPGroongaを使う方法"
Expand Down Expand Up @@ -686,7 +780,7 @@ msgid ""
"-- ----+------------+-----------------------------------------\n"
"-- 1 | PostgreSQL | {PostgreSQL,RDBMS}\n"
"-- 3 | PGroonga | {PostgreSQL,Groonga,\"full-text search\"}\n"
"-- (2 )\n"
"-- (2 rows)\n"
"```"
msgstr ""

Expand Down Expand Up @@ -1050,6 +1144,24 @@ msgid ""
"SELECT *\n"
" FROM json_array_elements(pgroonga.command('select ' || pgroonga.table_name('"
"pgroonga_content_index'))::json->1->0);\n"
"-- value "
" \n"
"-- ---------------------------------------------------------------------------"
"-----\n"
"-- [4]\n"
"-- [[\"_id\",\"UInt32\"],[\"content\",\"LongText\"],[\"ctid\",\"UInt64\"]]\n"
"-- [1,\"PostgreSQL is a relational database management system.\",1]\n"
"-- [2,\"Groonga is a fast full text search engine that supports all languages."
"\",2]\n"
"-- [3,\"PGroonga is a PostgreSQL extension that uses Groonga as index.\",3]\n"
"-- [4,\"There is groonga command.\",4]\n"
"-- (6 rows)\n"
"```"
msgstr ""
"```sql\n"
"SELECT *\n"
" FROM json_array_elements(pgroonga.command('select ' || pgroonga.table_name('"
"pgroonga_content_index'))::json->1->0);\n"
"-- value "
" \n"
"-- ---------------------------------------------------------------------------"
Expand All @@ -1062,7 +1174,6 @@ msgid ""
"-- [4,4,\"groongaコマンドがあります。\"]\n"
"-- (6 rows)\n"
"```"
msgstr ""

msgid ""
"See [`pgroonga.table_name` function](../reference/functions/pgroonga-table-nam"
Expand Down
2 changes: 1 addition & 1 deletion ja/tutorial/index.md
Expand Up @@ -426,7 +426,7 @@ SELECT * FROM products WHERE tags %% 'PostgreSQL';
-- ----+------------+-----------------------------------------
-- 1 | PostgreSQL | {PostgreSQL,RDBMS}
-- 3 | PGroonga | {PostgreSQL,Groonga,"full-text search"}
-- (2 )
-- (2 rows)
```

{: #json}
Expand Down

0 comments on commit be5638f

Please sign in to comment.