Kouhei Sutou
null+****@clear*****
Mon Jan 4 17:25:17 JST 2016
Kouhei Sutou 2016-01-04 17:25:17 +0900 (Mon, 04 Jan 2016) New Revision: 7a06b4b663f27ec0b1b9b9a7f88b6c72f95f07a8 https://github.com/pgroonga/pgroonga.github.io/commit/7a06b4b663f27ec0b1b9b9a7f88b6c72f95f07a8 Message: Add more description GitHub: #9 Suggested by Hiroyuki Sato. Thanks!!! Modified files: _po/ja/reference/operators/regular-expression.po ja/reference/operators/regular-expression.md reference/operators/regular-expression.md Modified: _po/ja/reference/operators/regular-expression.po (+23 -1) =================================================================== --- _po/ja/reference/operators/regular-expression.po 2016-01-04 17:20:16 +0900 (a46681d) +++ _po/ja/reference/operators/regular-expression.po 2016-01-04 17:25:17 +0900 (0ff7bc4) @@ -1,7 +1,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"PO-Revision-Date: 2016-01-04 16:59+0900\n" +"PO-Revision-Date: 2016-01-04 17:25+0900\n" "Language: ja\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -110,6 +110,28 @@ msgstr "" "たとえば、パターンに「`Groonga`」を使ってはいけません。そうではなく、「`groonga`」を使うべきです。なぜなら、対象テキスト中の「`G`」は「" "`g`」に正規化されるからです。対象テキスト中に「`Groonga`」という文字列は決して現れません。" +msgid "" +"Some simple regular expression patterns can be searched by index in Groonga. I" +"f index is used, the search is very fast. See [Groonga's regular expression do" +"cument](http://groonga.org/docs/reference/regular_expression.html#regular-expr" +"ession-index) for index searchable patterns." +msgstr "" +"いくつかのシンプルが正規表現のパターンはGroonga内でインデックスを使って検索します。インデックスを使った場合は非常に高速です。インデックスを使って検索" +"可能なパターンの詳細は[Groongaの正規表現のドキュメント](http://groonga.org/ja/docs/reference/regular_" +"expression.html#regular-expression-index)を参照してください。" + +msgid "" +"If a regular expression pattern can't be searchable by index, it's searched by" +" sequential scan in Groonga." +msgstr "もし、正規表現のパターンをインデックスを使って検索できない場合、Groonga内でシーケンシャルスキャンで検索します。" + +msgid "" +"Note that Groonga may search with regular expression pattern by sequential sca" +"n even when `EXPLAIN` reports PostgreSQL uses PGroonga index." +msgstr "" +"`EXPLAIN`でPostgreSQLがPGroongaのインデックスを使っているとレポートするときでも、Groongaは正規表現のパターンを使った検索を" +"シーケンシャルスキャンで実現するかもしれないことに注意してください。" + msgid "## Syntax" msgstr "## 構文" Modified: ja/reference/operators/regular-expression.md (+6 -0) =================================================================== --- ja/reference/operators/regular-expression.md 2016-01-04 17:20:16 +0900 (705760a) +++ ja/reference/operators/regular-expression.md 2016-01-04 17:25:17 +0900 (2af41ac) @@ -31,6 +31,12 @@ PGroongaの`@~`演算子はマッチ前に対象文字列を正規化します たとえば、パターンに「`Groonga`」を使ってはいけません。そうではなく、「`groonga`」を使うべきです。なぜなら、対象テキスト中の「`G`」は「`g`」に正規化されるからです。対象テキスト中に「`Groonga`」という文字列は決して現れません。 +いくつかのシンプルが正規表現のパターンはGroonga内でインデックスを使って検索します。インデックスを使った場合は非常に高速です。インデックスを使って検索可能なパターンの詳細は[Groongaの正規表現のドキュメント](http://groonga.org/ja/docs/reference/regular_expression.html#regular-expression-index)を参照してください。 + +もし、正規表現のパターンをインデックスを使って検索できない場合、Groonga内でシーケンシャルスキャンで検索します。 + +`EXPLAIN`でPostgreSQLがPGroongaのインデックスを使っているとレポートするときでも、Groongaは正規表現のパターンを使った検索をシーケンシャルスキャンで実現するかもしれないことに注意してください。 + ## 構文 ```sql Modified: reference/operators/regular-expression.md (+6 -0) =================================================================== --- reference/operators/regular-expression.md 2016-01-04 17:20:16 +0900 (6470384) +++ reference/operators/regular-expression.md 2016-01-04 17:25:17 +0900 (ec974d6) @@ -31,6 +31,12 @@ Note that `@~` operator doesn't normalize regular expression pattern. It only no For example, you must not use "`Groonga`" as pattern. You must use "`groonga`" as pattern. Because "`G`" in target text is normalized to "`g`". "`Groonga`" is never appeared in target text. +Some simple regular expression patterns can be searched by index in Groonga. If index is used, the search is very fast. See [Groonga's regular expression document](http://groonga.org/docs/reference/regular_expression.html#regular-expression-index) for index searchable patterns. + +If a regular expression pattern can't be searchable by index, it's searched by sequential scan in Groonga. + +Note that Groonga may search with regular expression pattern by sequential scan even when `EXPLAIN` reports PostgreSQL uses PGroonga index. + ## Syntax ```sql -------------- next part -------------- HTML����������������������������...Download