Yoji Shidara
null+****@clear*****
Wed Mar 5 17:18:57 JST 2014
Yoji Shidara 2014-03-05 17:18:57 +0900 (Wed, 05 Mar 2014) New Revision: 5934686549a38464d7585535f1860a8211b65849 https://github.com/droonga/droonga.org/commit/5934686549a38464d7585535f1860a8211b65849 Message: Add examples for table definition Modified files: reference/catalog/version2/index.md Modified: reference/catalog/version2/index.md (+29 -0) =================================================================== --- reference/catalog/version2/index.md 2014-03-05 16:39:50 +0900 (b1be3f7) +++ reference/catalog/version2/index.md 2014-03-05 17:18:57 +0900 (d1db2bc) @@ -310,6 +310,35 @@ Default value Inheritable : False. +#### Examples + +##### Example 1 + +A `Hash` table whose key is `ShortText` type, with no columns: + +~~~ +{ + "type": "Hash", + "keyType": "ShortText", + "columns": { + } +} +~~~ + +#### Example 2 + +A `PatriciaTrie` table with `TokenBigram` tokenizer and `NormalizerAuto` normalizer, with no columns: + +~~~ +{ + "type": "PatriciaTrie", + "keyType": "ShortText", + "tokenizer": "TokenBigram", + "normalizer": "NormalizerAuto", + "columns": { + } +} + ### Column definition {#column} Value -------------- next part -------------- HTML����������������������������...Download