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: ebdc28c707e4d5108e18f6d0dbd01cf9f6c4af5b https://github.com/droonga/droonga.org/commit/ebdc28c707e4d5108e18f6d0dbd01cf9f6c4af5b Merged efe7e86: Merge branch 'catalog-example' into gh-pages 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 (eaf9e1f) +++ reference/catalog/version2/index.md 2014-03-05 17:18:57 +0900 (fe31808) @@ -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