Yoji Shidara
null+****@clear*****
Wed Mar 5 19:05:10 JST 2014
Yoji Shidara 2014-03-05 19:05:10 +0900 (Wed, 05 Mar 2014) New Revision: 8ebb5d160ef416f129ed4d916ac51c5fa811ad4a https://github.com/droonga/droonga.org/commit/8ebb5d160ef416f129ed4d916ac51c5fa811ad4a Merged efe7e86: Merge branch 'catalog-example' into gh-pages Message: Add examples for Slice definition Modified files: reference/catalog/version2/index.md Modified: reference/catalog/version2/index.md (+38 -0) =================================================================== --- reference/catalog/version2/index.md 2014-03-05 18:47:00 +0900 (c0bf3fb) +++ reference/catalog/version2/index.md 2014-03-05 19:05:10 +0900 (6749c8b) @@ -710,3 +710,41 @@ Default value Inheritable : False. + +#### Examples + +##### Example 1 + +Slice for a ratio-scaled slicer, with the weight `1`: + +~~~ +{ + "weight": 1, + "volume": { + } +} +~~~ + +##### Example 2 + +Slice for a nominal-scaled slicer, with the label `"1"`: + +~~~ +{ + "label": "1", + "volume": { + } +} +~~~ + +#### Example 3 + +Slice for a ordinal-scaled slicer, with the boundary `100`: + +~~~ +{ + "boundary": 100, + "volume": { + } +} +~~~ -------------- next part -------------- HTML����������������������������...Download