[Groonga-commit] droonga/droonga.org at 9ee088b [catalog-example] Add examples for column definition

Back to archive index

Yoji Shidara null+****@clear*****
Wed Mar 5 16:39:50 JST 2014


Yoji Shidara	2014-03-05 16:39:50 +0900 (Wed, 05 Mar 2014)

  New Revision: 9ee088beb05d6128baa714bc62d07073b72a166e
  https://github.com/droonga/droonga.org/commit/9ee088beb05d6128baa714bc62d07073b72a166e

  Message:
    Add examples for column definition

  Modified files:
    reference/catalog/version2/index.md

  Modified: reference/catalog/version2/index.md (+28 -0)
===================================================================
--- reference/catalog/version2/index.md    2014-03-05 16:02:42 +0900 (3223c3a)
+++ reference/catalog/version2/index.md    2014-03-05 16:39:50 +0900 (b1be3f7)
@@ -359,6 +359,34 @@ Default value
 Inheritable
 : False.
 
+#### Examples
+
+##### Example 1
+
+A column to store scalar `ShortText` values:
+
+~~~
+{
+  "type": "Scalar",
+  "valueType": "ShortText"
+}
+~~~
+
+##### Example 2
+
+A column to index `address` column on `Store` table:
+
+~~~
+{
+  "type": "Index",
+  "valueType": "Store",
+  "indexOptions": {
+    "sources": [
+      "address"
+    ]
+  }
+}
+
 ##### `indexOptions` {#parameter-indexOptions}
 
 Abstract
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index