Navigation Menu

Skip to content

Commit

Permalink
Use English for sample data
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 25, 2015
1 parent c4dfa9c commit 9d96e51
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 14 deletions.
73 changes: 69 additions & 4 deletions _po/ja/reference/functions/pgroonga-table-name.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-10-24 17:16+0900\n"
"PO-Revision-Date: 2015-10-25 21:55+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -94,6 +94,25 @@ msgid ""
"INSERT INTO terms\n"
" VALUES (1,\n"
" 'PostgreSQL',\n"
" 'PostgreSQL is a relational database management system.',\n"
" 'PostgreSQL');\n"
"INSERT INTO terms\n"
" VALUES (2,\n"
" 'Groonga',\n"
" 'Groonga is a fast full text search engine that supports all lang"
"uages.',\n"
" 'Groonga');\n"
"INSERT INTO terms\n"
" VALUES (3,\n"
" 'PGroonga',\n"
" 'PGroonga is a PostgreSQL extension that uses Groonga as index.',"
"\n"
" 'PostgreSQL');\n"
"```"
msgstr ""
"INSERT INTO terms\n"
" VALUES (1,\n"
" 'PostgreSQL',\n"
" 'PostgreSQLはリレーショナル・データベース管理システムです。',\n"
" 'PostgreSQL');\n"
"INSERT INTO terms\n"
Expand All @@ -107,7 +126,6 @@ msgid ""
" 'PGroongaはインデックスとしてGroongaを使うためのPostgreSQLの拡張機能です。',\n"
" 'PostgreSQL');\n"
"```"
msgstr ""

msgid ""
"You can use [`match_columns` option](http://groonga.org/docs/reference/command"
Expand All @@ -124,6 +142,32 @@ msgid ""
" pgroonga.table_name('pgroonga_terms_index') || ' ' |"
"|\n"
" '--match_columns \"title * 10 || content\" ' ||\n"
" '--query \"Groonga OR PostgreSQL OR engine\" ' ||\n"
" '--output_columns \"_score, title, content\" ' ||\n"
" '--sortby \"-_score\"'\n"
" )::json->1->0);\n"
"-- value "
" \n"
"-- ---------------------------------------------------------------------------"
"--------------\n"
"-- [3]\n"
"-- [[\"_score\",\"Int32\"],[\"title\",\"LongText\"],[\"content\",\"LongText\"]]\n"
"-- [12,\"Groonga\",\"Groonga is a fast full text search engine that supports all"
" languages.\"]\n"
"-- [11,\"PostgreSQL\",\"PostgreSQL is a relational database management system.\"]"
"\n"
"-- [2,\"PGroonga\",\"PGroonga is a PostgreSQL extension that uses Groonga as ind"
"ex.\"]\n"
"-- (5 rows)\n"
"```"
msgstr ""
"```sql\n"
"SELECT *\n"
" FROM json_array_elements(\n"
" pgroonga.command('select ' ||\n"
" pgroonga.table_name('pgroonga_terms_index') || ' ' |"
"|\n"
" '--match_columns \"title * 10 || content\" ' ||\n"
" '--query \"Groonga OR PostgreSQL OR 全文検索\" ' ||\n"
" '--output_columns \"_score, title, content\" ' ||\n"
" '--sortby \"-_score\"'\n"
Expand All @@ -139,7 +183,6 @@ msgid ""
"-- [2,\"PGroonga\",\"PGroongaはインデックスとしてGroongaを使うためのPostgreSQLの拡張機能です。\"]\n"
"-- (5 rows)\n"
"```"
msgstr ""

msgid ""
"You can use drilldown feature by [`drilldown` option](http://groonga.org/docs/"
Expand All @@ -156,7 +199,7 @@ msgid ""
" pgroonga.table_name('pgroonga_terms_index') || ' ' |"
"|\n"
" '--match_columns \"title * 10 || content\" ' ||\n"
" '--query \"Groonga OR PostgreSQL OR 全文検索\" ' ||\n"
" '--query \"Groonga OR PostgreSQL OR engine\" ' ||\n"
" '--output_columns \"_score, title\" ' ||\n"
" '--sortby \"-_score\" ' ||\n"
" '--drilldown \"tag\"'\n"
Expand All @@ -172,6 +215,28 @@ msgid ""
"-- (2 rows)\n"
"```"
msgstr ""
"```sql\n"
"SELECT *\n"
" FROM json_array_elements(\n"
" pgroonga.command('select ' ||\n"
" pgroonga.table_name('pgroonga_terms_index') || ' ' |"
"|\n"
" '--match_columns \"title * 10 || content\" ' ||\n"
" '--query \"Groonga OR PostgreSQL OR 全文検索\" ' ||\n"
" '--output_columns \"_score, title\" ' ||\n"
" '--sortby \"-_score\" ' ||\n"
" '--drilldown \"tag\"'\n"
" )::json->1);\n"
"-- value "
" \n"
"-- ---------------------------------------------------------------------------"
"----------------------\n"
"-- [[3],[[\"_score\",\"Int32\"],[\"title\",\"LongText\"]],[12,\"Groonga\"],[11,\"Postgre"
"SQL\"],[2,\"PGroonga\"]]\n"
"-- [[2],[[\"_key\",\"ShortText\"],[\"_nsubrecs\",\"Int32\"]],[\"Groonga\",1],[\"PostgreS"
"QL\",2]]\n"
"-- (2 rows)\n"
"```"

msgid "`select` Groonga command may help you when `SELECT` statement in SQL is slow."
msgstr "Groongaの`select`コマンドはSQLの`SELECT`分が遅いときの手段として使えます。"
Expand Down
20 changes: 10 additions & 10 deletions reference/functions/pgroonga-table-name.md
Expand Up @@ -42,17 +42,17 @@ CREATE INDEX pgroonga_terms_index
INSERT INTO terms
VALUES (1,
'PostgreSQL',
'PostgreSQLはリレーショナル・データベース管理システムです。',
'PostgreSQL is a relational database management system.',
'PostgreSQL');
INSERT INTO terms
VALUES (2,
'Groonga',
'Groongaは日本語対応の高速な全文検索エンジンです。',
'Groonga is a fast full text search engine that supports all languages.',
'Groonga');
INSERT INTO terms
VALUES (3,
'PGroonga',
'PGroongaはインデックスとしてGroongaを使うためのPostgreSQLの拡張機能です。',
'PGroonga is a PostgreSQL extension that uses Groonga as index.',
'PostgreSQL');
```

Expand All @@ -64,17 +64,17 @@ SELECT *
pgroonga.command('select ' ||
pgroonga.table_name('pgroonga_terms_index') || ' ' ||
'--match_columns "title * 10 || content" ' ||
'--query "Groonga OR PostgreSQL OR 全文検索" ' ||
'--query "Groonga OR PostgreSQL OR engine" ' ||
'--output_columns "_score, title, content" ' ||
'--sortby "-_score"'
)::json->1->0);
-- value
-- --------------------------------------------------------------------------------------------
-- value
-- -----------------------------------------------------------------------------------------
-- [3]
-- [["_score","Int32"],["title","LongText"],["content","LongText"]]
-- [12,"Groonga","Groongaは日本語対応の高速な全文検索エンジンです。"]
-- [11,"PostgreSQL","PostgreSQLはリレーショナル・データベース管理システムです。"]
-- [2,"PGroonga","PGroongaはインデックスとしてGroongaを使うためのPostgreSQLの拡張機能です。"]
-- [12,"Groonga","Groonga is a fast full text search engine that supports all languages."]
-- [11,"PostgreSQL","PostgreSQL is a relational database management system."]
-- [2,"PGroonga","PGroonga is a PostgreSQL extension that uses Groonga as index."]
-- (5 rows)
```

Expand All @@ -86,7 +86,7 @@ SELECT *
pgroonga.command('select ' ||
pgroonga.table_name('pgroonga_terms_index') || ' ' ||
'--match_columns "title * 10 || content" ' ||
'--query "Groonga OR PostgreSQL OR 全文検索" ' ||
'--query "Groonga OR PostgreSQL OR engine" ' ||
'--output_columns "_score, title" ' ||
'--sortby "-_score" ' ||
'--drilldown "tag"'
Expand Down

0 comments on commit 9d96e51

Please sign in to comment.