Kouhei Sutou
null+****@clear*****
Sat Aug 29 20:50:24 JST 2015
Kouhei Sutou 2015-08-29 20:50:24 +0900 (Sat, 29 Aug 2015) New Revision: 11c5e857dc49e52c354dc692051675fac6b17147 https://github.com/groonga/groonga/commit/11c5e857dc49e52c354dc692051675fac6b17147 Message: doc table_create: add more description to default_tokenizer GitHub: #382 Suggested by Hiroyuki Sato. Thanks!!! Modified files: doc/locale/ja/LC_MESSAGES/reference.po doc/source/reference/commands/table_create.rst Modified: doc/locale/ja/LC_MESSAGES/reference.po (+39 -11) =================================================================== --- doc/locale/ja/LC_MESSAGES/reference.po 2015-08-29 20:50:04 +0900 (ff1b97e) +++ doc/locale/ja/LC_MESSAGES/reference.po 2015-08-29 20:50:24 +0900 (97e3c2c) @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 1.2.1\n" "Report-Msgid-Bugs-To: \n" -"PO-Revision-Date: 2015-08-27 13:02+0900\n" +"PO-Revision-Date: 2015-08-29 20:49+0900\n" "Last-Translator: Masafumi Yokoyama <yokoyama �� clear-code.com>\n" "Language-Team: Japanese\n" "Language: ja\n" @@ -9837,21 +9837,49 @@ msgstr "" "ます。" msgid "" -"You cannot use ``default_tokenizer`` with ``TABLE_NO_KEY`` because " -"``TABLE_NO_KEY`` cannot be used for index." +"You must specify ``default_tokenizer`` for a table that is used for lexicon " +"of fulltext search index. See :doc:`/reference/tokenizers` for available " +"tokenizers. You must choose a tokenizer from the list for fulltext search." msgstr "" -"``TABLE_NO_KEY`` と一緒に ``default_tokenizer`` を使うことはできません。これ" -"は、 ``TABLE_NO_KEY`` をインデックスに使うことができないからです。" +"テーブルを全文検索インデックスの語彙表として使う場合は ``default_tokenizer`` " +"を指定しなければいけません。利用可能なトークナイザーは :doc:`/reference/" +"tokenizers` を参照してください。全文検索する場合はこのリストの中からトークナ" +"イザーを選んでください。" + +msgid "You don't need to specify ``default_tokenizer`` in the following cases:" +msgstr "次の場合は ``default_tokenizer`` を指定する必要はありません。" + +msgid "You don't use the table as a lexicon." +msgstr "テーブルを語彙表として使わないとき。" msgid "" -"You must specify ``default_tokenizer`` for a table that is used for fulltext " -"search index." +"You use the table as a lexicon but you don't need fulltext search. For " +"example:" +msgstr "テーブルを語彙表として使うが、全文検索をしないとき。例:" + +msgid "Index target data isn't text data such as ``Int32`` and ``Time``." msgstr "" -"全文検索用のインデックスとして使う場合には ``default_tokenizer`` を必ず指定し" -"なければいけません。" +"インデックス対象のデータが ``Int32`` や ``Time`` のようにテキストデータでない" +"とき。" -msgid "See :doc:`/reference/tokenizers` for all tokenizers" -msgstr "トークナイザーの一覧は :doc:`/reference/tokenizers` にあります。" +msgid "You just need exact match search, prefix search and so on." +msgstr "完全一致検索や前方一致検索などだけが必要なとき。" + +msgid "" +"You can't use ``default_tokenizer`` with ``TABLE_NO_KEY`` flag because a " +"table that uses ``TABLE_NO_KEY`` flag can't be used as lexicon." +msgstr "" +"``TABLE_NO_KEY`` フラグと一緒に ``default_tokenizer`` を使うことはできませ" +"ん。これは、 ``TABLE_NO_KEY`` フラグを使っているテーブルは語彙表として使うこ" +"とはできないからです。" + +msgid "" +"You must specify ``TABLE_HASH_KEY``, ``TABLE_PAT_KEY``, ``TABLE_DAT_KEY`` " +"to :ref:`table-create-flags` when you want to use the table as a lexicon." +msgstr "" +"テーブルを語彙表として使いたいときは、 :ref:`table-create-flags` に " +"``TABLE_HASH_KEY`` 、 ``TABLE_PAT_KEY`` 、 ``TABLE_DAT_KEY`` のどれかを指定し" +"てください。" msgid "Specifies a normalizer that is used to normalize key." msgstr "キーを正規化するために使うノーマライザーを指定します。" Modified: doc/source/reference/commands/table_create.rst (+30 -5) =================================================================== --- doc/source/reference/commands/table_create.rst 2015-08-29 20:50:04 +0900 (4ed918e) +++ doc/source/reference/commands/table_create.rst 2015-08-29 20:50:24 +0900 (d15944b) @@ -157,6 +157,8 @@ Parameters This section describes all parameters. +.. _table-create-name: + ``name`` ^^^^^^^^ @@ -177,6 +179,8 @@ You need to create a name with one or more the above chracters. Note that you cannot use ``_`` as the first character such as ``_name``. +.. _table-create-flags: + ``flags`` ^^^^^^^^^ @@ -214,6 +218,8 @@ See :doc:`/reference/tables` for difference between table types. The default flags are ``TABLE_HASH_KEY``. +.. _table-create-key-type: + ``key_type`` ^^^^^^^^^^^^ @@ -227,6 +233,8 @@ See :doc:`/reference/types` for all types. The default value is none. +.. _table-create-value-type: + ``value_type`` ^^^^^^^^^^^^^^ @@ -239,19 +247,36 @@ but ``ShortText`` cannot be used. Use columns instead of value. The default value is none. +.. _table-create-default-tokenizer: + ``default_tokenizer`` ^^^^^^^^^^^^^^^^^^^^^ Specifies the default tokenizer that is used on searching and data loading. -You cannot use ``default_tokenizer`` with ``TABLE_NO_KEY`` because -``TABLE_NO_KEY`` cannot be used for index. - You must specify ``default_tokenizer`` for a table that is used for -fulltext search index. +lexicon of fulltext search index. See :doc:`/reference/tokenizers` for +available tokenizers. You must choose a tokenizer from the list for +fulltext search. + +You don't need to specify ``default_tokenizer`` in the following +cases: + + * You don't use the table as a lexicon. + + * You use the table as a lexicon but you don't need fulltext + search. For example: + + * Index target data isn't text data such as ``Int32`` and ``Time``. + * You just need exact match search, prefix search and so on. + +You can't use ``default_tokenizer`` with ``TABLE_NO_KEY`` flag because +a table that uses ``TABLE_NO_KEY`` flag can't be used as lexicon. -See :doc:`/reference/tokenizers` for all tokenizers +You must specify ``TABLE_HASH_KEY``, ``TABLE_PAT_KEY``, +``TABLE_DAT_KEY`` to :ref:`table-create-flags` when you want to use +the table as a lexicon. The default value is none. -------------- next part -------------- HTML����������������������������... Download