Yasuhiro Horimoto 2018-11-01 17:21:17 +0900 (Thu, 01 Nov 2018) Revision: 022161c7e607b736db020c7fd0976682891b3367 https://github.com/groonga/groonga/commit/022161c7e607b736db020c7fd0976682891b3367 Message: doc regular expression: add a note about normalize of search keywords Modified files: doc/locale/ja/LC_MESSAGES/reference.po doc/source/reference/regular_expression.rst Modified: doc/locale/ja/LC_MESSAGES/reference.po (+22 -0) =================================================================== --- doc/locale/ja/LC_MESSAGES/reference.po 2018-11-01 17:19:08 +0900 (d642ca452) +++ doc/locale/ja/LC_MESSAGES/reference.po 2018-11-01 17:21:17 +0900 (a0a345131) @@ -24511,6 +24511,28 @@ msgstr "" "Groongaはインデックスを使ってこのパターンを検索できます。これは高速です。" msgid "" +"By full text search normally, Groonga normalize search keywords using the " +"normalizer specified in a lexicon. By using regular expression search, " +"Groonga doesn't normalize search keywords. Because the regular expression " +"has specified meaning in uppercase and lowercase." +msgstr "" +"全文検索では通常、Groongaは検索キーワードを語彙表に指定されているノーマライ" +"ザーを使って正規化します。正規表現を使った検索では、Groongaは、検索キーワード" +"を正規化しません。これは、正規表現は大文字と小文字に意味があるためです。" + +msgid "" +"So, if you regular expression search that doesn't use the index, we suggest " +"that use :doc:`/reference/commands/normalize` command to normalize search " +"keywords before a search. By using :doc:`/reference/commands/normalize` " +"command, you don't have to need to think about how to normalize search " +"keywords." +msgstr "" +"したがって、インデックスを使えない正規表現検索では、 :doc:`/reference/" +"commands/normalize` コマンドで検索前に検索キーワードを正規化することをおすす" +"めします。:doc:`/reference/commands/normalize` コマンドを使うことで、検索キー" +"ワードをどのように正規化するか考る必要がなくなります。" + +msgid "" "You may feel the behavior is strange. But fast search based on this behavior " "will help you." msgstr "" Modified: doc/source/reference/regular_expression.rst (+13 -0) =================================================================== --- doc/source/reference/regular_expression.rst 2018-11-01 17:19:08 +0900 (2fff57966) +++ doc/source/reference/regular_expression.rst 2018-11-01 17:21:17 +0900 (f693ec961) @@ -46,6 +46,19 @@ that can be evaluated by index are described later. If you write ``disk`` regular expression for case-insensitive match, Groonga can search the pattern with index. It's fast. + By full text search normally, Groonga normalize search keywords + using the normalizer specified in a lexicon. + By using regular expression search, Groonga doesn't normalize search + keywords. + Because the regular expression has specified meaning in uppercase and + lowercase. + + So, if you regular expression search that doesn't use the index, + we suggest that use :doc:`/reference/commands/normalize` command to + normalize search keywords before a search. + By using :doc:`/reference/commands/normalize` command, you don't have + to need to think about how to normalize search keywords. + You may feel the behavior is strange. But fast search based on this behavior will help you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181101/953081bc/attachment-0001.html>