Navigation Menu

Skip to content

Commit

Permalink
Translate
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 28, 2015
1 parent 345879d commit 1ea9a46
Show file tree
Hide file tree
Showing 3 changed files with 259 additions and 119 deletions.
164 changes: 98 additions & 66 deletions _po/ja/reference/operators/like.po
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"PO-Revision-Date: 2015-10-25 22:10+0900\n"
"PO-Revision-Date: 2015-10-28 23:36+0900\n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand All @@ -27,12 +27,31 @@ msgstr "## 概要"

msgid ""
"PGroonga converts `column LIKE '%KEYWORD%'` condition to `column %% 'KEYWORD'`"
" internally. [`%%` operator](match.html) does full text search with index. It'"
"s faster than `LIKE` operator without index."
" internally. [`%%` operator](match.html) performs full text search with index."
" It's faster than `LIKE` operator without index."
msgstr ""
"PGroongaは内部的に`column LIKE '%キーワード%'`条件を`column %% 'キーワード'`条件に変換します。[`%%`演算子](m"
"atch.html)はインデックスを使って全文検索をします。これはインデックスを使わない`LIKE`演算子より速いです。"

msgid ""
"`column LIKE '%KEYWORD%'` with index is slower than `column %% 'KEYWORD'` with"
" index because `column LIKE '%KEYWORD%'` with index needs \"[Recheck]\"(http://w"
"ww.postgresql.org/docs/{{ site.postgresql_short_version }}/static/index-scanni"
"ng.html). `column %% 'KEYWORD'` doesn't need \"Recheck\"."
msgstr ""
"インデックスを使った`column LIKE '%キーワード%'`は`column %% 'キーワード'`よりも遅いです。これは、インデックスを使った`co"
"lumn LIKE '%キーワード%'`は「[再検査](https://www.postgresql.jp/document/{{ site.postgre"
"sql_short_version }}/html/index-scanning.html)」する必要があるからです。`column %% 'キーワード'`"
"は「再検査」する必要がありません。"

msgid ""
"The original `LIKE` operator searches against text as is. But `%%` operator pe"
"rforms full text search against normalized text. It means that search result o"
"f `LIKE` operator with index needs \"Recheck\"."
msgstr ""
"元の`LIKE`演算子は対象テキストに対して検索します。しかし、`%%`演算子は正規化したテキストに対して検索します。そのため、インデックスを使って`LIK"
"E`演算子の検索を実行した場合は「再検査」が必要になります。"

msgid "## Syntax"
msgstr "## 構文"

Expand All @@ -48,18 +67,8 @@ msgstr ""
msgid "`column` is a column to be searched."
msgstr "`column`は検索対象のカラムです。"

msgid ""
"`pattern` is a search pattern. It's `text` type. It must be `'%KEYWORD%'` form"
"at."
msgstr "`pattern`は検索パターンです。`text`型です。`'%キーワード%'`というフォーマットではなければいけません。"

msgid ""
"Both beginning `%` and ending `%` are important. `'KEYWORD%'`, `'%KEYWORD'` an"
"d so on aren't converted to `column %% 'KEYWORD'`. PGroonga returns no records"
" for these patterns. Because PGroonga can't search these patterns with index."
msgstr ""
"最初の`%`と最後の`%`はどちらも重要です。`'キーワード%'`、`'%キーワード'`などは`column %% 'キーワード'`に変換されます。このよう"
"なパターンを指定するとPGroongaは1件もレコードを返しません。なぜならPGroongaはインデックスなしではこれらのパターンを検索できないからです。"
msgid "`pattern` is a search pattern. It's `text` type."
msgstr "`pattern`は検索パターンです。`text`型です。"

msgid "## Usage"
msgstr "## 使い方"
Expand Down Expand Up @@ -99,28 +108,14 @@ msgstr ""
"INSERT INTO memos VALUES (4, 'groongaコマンドがあります。');\n"
"```"

msgid ""
"The original `LIKE` operator searches against text as is. But `%%` operator do"
"es full text search against normalized text. It means that search result of `L"
"IKE` operator with index and search result of the original `LIKE` operator may"
" be different."
msgstr ""
"元の`LIKE`演算子は対象テキストに対して検索します。しかし、`%%`演算子は正規化したテキストに対して検索します。これは、インデックスを使った`LIKE"
"`演算子の検索結果と、元の`LIKE`演算子の検索結果は異なるということです。"

msgid ""
"For example, the original `LIKE` operator searches with case sensitive. But `L"
"IKE` operator with index searches with case insensitive."
msgstr "たとえば、元の`LIKE`演算子は大文字小文字を区別して検索します。しかし、インデックスを使った`LIKE`演算子は大文字小文字を区別しません。"

msgid "A search result of the original `LIKE` operator:"
msgstr "元の`LIKE`演算子の結果です。"
msgid "You can perform `LIKE` operator with index:"
msgstr "インデックスを使って`LIKE`演算子を実行できます。"

msgid ""
"```sql\n"
"SET enable_seqscan = on;\n"
"SET enable_indexscan = off;\n"
"SET enable_bitmapscan = off;"
"SET enable_seqscan = off;\n"
"SET enable_indexscan = on;\n"
"SET enable_bitmapscan = on;"
msgstr ""

msgid ""
Expand All @@ -138,18 +133,34 @@ msgstr ""
"-- (1 row)\n"
"```"

msgid "A search result of `LIKE` operator with index:"
msgstr "インデックスを使った`LIKE`演算子の結果です。"
msgid ""
"The default operator class of PGroonga index for `text` type can't find any re"
"cords with partial alphabet keyword. For example, you can't find record with `"
"roonga` keyword:"
msgstr ""
"PGroongaのインデックスが適用している`text`型用のデフォルトのオペレータークラスは、キーワードがアルファベットのみだった場合、キーワードの一部だ"
"けで検索してもヒットしません。たとえば、`roonga`というキーワードではヒットしません。"

msgid ""
"SELECT * FROM memos WHERE content LIKE '%roonga%';\n"
"-- id | content \n"
"-- ----+---------\n"
"-- (0 rows)\n"
"```"
msgstr ""

msgid "But you can find some records with `roonga` keyword without index:"
msgstr "インデックスを使わない場合は`roonga`というキーワードでもヒットします。"

msgid ""
"```sql\n"
"SET enable_seqscan = off;\n"
"SET enable_indexscan = on;\n"
"SET enable_bitmapscan = on;"
"SET enable_seqscan = on;\n"
"SET enable_indexscan = off;\n"
"SET enable_bitmapscan = off;"
msgstr ""

msgid ""
"SELECT * FROM memos WHERE content LIKE '%groonga%';\n"
"SELECT * FROM memos WHERE content LIKE '%roonga%';\n"
"-- id | content "
" \n"
"-- ----+----------------------------------------------------------------------"
Expand All @@ -161,7 +172,7 @@ msgid ""
"-- (3 rows)\n"
"```"
msgstr ""
"SELECT * FROM memos WHERE content LIKE '%groonga%';\n"
"SELECT * FROM memos WHERE content LIKE '%roonga%';\n"
"-- id | content "
" \n"
"-- ----+----------------------------------------------------------------------"
Expand All @@ -172,20 +183,36 @@ msgstr ""
"-- (3 rows)\n"
"```"

msgid ""
"If you want to get the same result by both `LIKE` operator with index and the "
"original `LIKE` operator, use the following tokenizer and normalizer:"
msgstr "インデックスを使った`LIKE`演算子の結果と元の`LIKE`演算子の結果を同じにしたい場合は次のトークナイザーとノーマライザーを使います。"
msgid "You can find records by prefix alphabet keyword such as `Gro`:"
msgstr "キーワードがアルファベットだけだった場合でも、`Gro`のようにキーワードの先頭部分を指定した場合はヒットします。"

msgid ""
" * Tokenizer: `TokenBigramSplitSymbolAlphaDigit`\n"
" * Normalizer: None"
"SELECT * FROM memos WHERE content LIKE '%Gro%';\n"
"-- id | content "
" \n"
"-- ----+----------------------------------------------------------------------"
"--\n"
"-- 2 | Groonga is a fast full text search engine that supports all languages"
".\n"
"-- 3 | PGroonga is a PostgreSQL extension that uses Groonga as index.\n"
"-- (2 rows)\n"
"```"
msgstr ""
" * トークナイザー: `TokenBigramSplitSymbolAlphaDigit`\n"
" * ノーマライザー: なし"
"SELECT * FROM memos WHERE content LIKE '%Gro%';\n"
"-- id | content "
" \n"
"-- ----+----------------------------------------------------------------------"
"-----\n"
"-- 2 | Groongaは日本語対応の高速な全文検索エンジンです。\n"
"-- 3 | PGroongaはインデックスとしてGroongaを使うためのPostgreSQLの拡張機能です。\n"
"-- (2 rows)\n"
"```"

msgid "Here is a concrete example:"
msgstr "具体例は次の通りです。"
msgid "If you want to search by partial alphabet keyword, there are two approaches."
msgstr "キーワードがアルファベットの場合でも、キーワードの一部で検索できるようにする方法は2つあります。"

msgid "The first approach is using the `TokenBigramSplitSymbolAlphaDigit` tokenizer:"
msgstr "最初の方法は`TokenBigramSplitSymbolAlphaDigit`トークナイザーを使う方法です。"

msgid ""
"```sql\n"
Expand All @@ -196,27 +223,32 @@ msgid ""
"CREATE INDEX pgroonga_content_index\n"
" ON memos\n"
" USING pgroonga (content)\n"
" WITH (tokenizer='TokenBigramSplitSymbolAlphaDigit',\n"
" normalizer='');\n"
" WITH (tokenizer='TokenBigramSplitSymbolAlphaDigit');\n"
"```"
msgstr ""

msgid ""
"You can get the same result as the original `LIKE` operator with `LIKE` operat"
"or with index:"
msgstr "元の`LIKE`演算子とインデックスを使った`LIKE`演算子で同じ結果が返ります。"
msgid "You can find records by `roonga`:"
msgstr "これで`roonga`でもヒットするようになります。"

msgid ""
"Normally, the default configuration returns better result for full text search"
" rather than the original `LIKE` operator. Think about which result is better "
"for users before you change the default configuration."
"See [Customization in `CREATE INDEX USING pgroonga`](../create-index-using-pgr"
"oonga.html#customization) for tokenizer."
msgstr ""
"通常、デフォルトの設定は元の`LIKE`演算子よりも適切な全文検索結果を返す設定です。もし、デフォルトの設定をするときは、変更する前にユーザーにとてどのよう"
"な結果が適切かを考えてください。"
"トークナイザーをカスタマイズする方法については[`CREATE INDEX USING pgroonga`のカスタマイズ](../create-index-"
"using-pgroonga.html#customization)を参照してください。"

msgid "The second approach is using `pgroonga.text_regexp_ops` operator class:"
msgstr "2つめの方法は`pgroonga.text_regexp_ops`オペレータークラスを使う方法です。"

msgid ""
"See [Customization in `CREATE INDEX USING pgroonga`](../create-index-using-pgr"
"oonga.html#customization) for tokenizer and normalizer."
"CREATE INDEX pgroonga_content_index\n"
" ON memos\n"
" USING pgroonga (content pgroonga.text_regexp_ops);\n"
"```"
msgstr ""

msgid "## See also"
msgstr "## 参考"

msgid " * [`CREATE INDEX USING pgroonga`](../create-index-using-pgroonga.html)"
msgstr ""
"トークナイザーとノーマライザーをカスタマイズする方法については[`CREATE INDEX USING pgroonga`のカスタマイズ](../creat"
"e-index-using-pgroonga.html#customization)を参照してください。"

0 comments on commit 1ea9a46

Please sign in to comment.