[Groonga-commit] droonga/droonga.org at 924dcd3 [gh-pages] Make example include subrecords

Back to archive index

Yoji Shidara null+****@clear*****
Wed Jan 29 13:14:30 JST 2014


Yoji Shidara	2014-01-29 13:14:30 +0900 (Wed, 29 Jan 2014)

  New Revision: 924dcd3d7e04bd80df28760f36377408166c0b07
  https://github.com/droonga/droonga.org/commit/924dcd3d7e04bd80df28760f36377408166c0b07

  Message:
    Make example include subrecords

  Modified files:
    ja/reference/commands/search/index.md

  Modified: ja/reference/commands/search/index.md (+46 -1)
===================================================================
--- ja/reference/commands/search/index.md    2014-01-29 12:03:54 +0900 (44ee2b6)
+++ ja/reference/commands/search/index.md    2014-01-29 13:14:30 +0900 (ef2655f)
@@ -1098,15 +1098,41 @@ Droongaはそのカラムの値が同じであるレコードを集約し、カ
           "vector" : <カラム1がベクターカラムかどうか> },
         { "name"   : "<カラム2の名前>",
           "type"   : "<カラム2の型>",
-          "vector" : <カラム2がベクターカラムかどうか> },,
+          "vector" : <カラム2がベクターカラムかどうか> },
+        { "name"   : "<カラム3(サブレコードが存在する場合)の名前>",
+          "attributes" : {
+            { "name"   : "<カラム3-1のカラムの名前>",
+              "type"   : "<カラム3-1のカラムの型">,
+              "vector" : "<カラム3-1のベクターカラムかどうか>"
+            },
+            { "name"   : "<カラム3-2のカラムの名前>",
+              "type"   : "<カラム3-2のカラムの型">,
+              "vector" : "<カラム3-2のベクターカラムかどうか>"
+            },
+            ...
+          }
         ...
       ],
       "records"     : [
         [<レコード1のカラム1の値>,
          <レコード1のカラム2の値>,
+         [[<レコード1のサブレコード1のカラム3-1の値>,
+           <レコード1のサブレコード1のカラム3-2の値>,
+           ...],
+          [<レコード1のサブレコード2のカラム3-1の値>,
+           <レコード1のサブレコード2のカラム3-2の値>,
+           ...],
+          ...],
          ...],
         [<レコード2のカラム1の値>,
          <レコード2のカラム2の値>,
+         [[<レコード2のサブレコード1のカラム3-1の値>,
+           <レコード2のサブレコード1のカラム3-2の値>,
+           ...],
+          [<レコード2のサブレコード2のカラム3-1の値>,
+           <レコード2のサブレコード2のカラム3-2の値>,
+           ...],
+          ...],
          ...],
         ...
       ]
@@ -1156,14 +1182,33 @@ Droongaはそのカラムの値が同じであるレコードを集約し、カ
                                 "vector" : <カラム1がベクターカラムかどうか> },
         "<カラム2の名前>" : { "type"   : "<カラム2の型>",
                                 "vector" : <カラム2がベクターカラムかどうか> },
+        "<カラム3(サブレコードが存在する場合)の名前>" : {
+          "attributes": {
+            "<カラム3-1の名前>" : { "type"   : "<カラム3-1の型>",
+                                    "vector" : <カラム3-1がベクターカラムかどうか> },
+            ...
+          }
+        }
         ...
       ],
       "records"     : [
         { "<カラム1の名前>" : <レコード1のカラム1の値>,
           "<カラム2の名前>" : <レコード1のカラム2の値>,
+          "<カラム3の名前>" : [
+            { "<カラム3-1の名前>" : <レコード1のサブレコード1のカラム3-1の値>,
+            ...},
+            { "<カラム3-1の名前>" : <レコード1のサブレコード2のカラム3-1の値>,
+            ...},
+          ]
           ...                                                                },
         { "<カラム1の名前>" : <レコード2のカラム1の値>,
           "<カラム2の名前>" : <レコード2のカラム2の値>,
+          "<カラム3の名前>" : [
+            { "<カラム3-1の名前>" : <レコード2のサブレコード1のカラム3-1の値>,
+            ...},
+            { "<カラム3-1の名前>" : <レコード2のサブレコード2のカラム3-1の値>,
+            ...},
+          ]
           ...                                                                },
         ...
       ]
-------------- next part --------------
HTML����������������������������...
下載 



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