[Groonga-commit] droonga/droonga.org at 2cf5dd3 [gh-pages] Update ja/reference/search/index.md

Back to archive index

Yoji Shidara null+****@clear*****
Wed Jan 29 16:38:23 JST 2014


Yoji Shidara	2014-01-29 16:38:23 +0900 (Wed, 29 Jan 2014)

  New Revision: 2cf5dd3dc5d76023527f8a846a922035b623b101
  https://github.com/droonga/droonga.org/commit/2cf5dd3dc5d76023527f8a846a922035b623b101

  Message:
    Update ja/reference/search/index.md

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

  Modified: _po/ja/reference/commands/search/index.po (+52 -6)
===================================================================
--- _po/ja/reference/commands/search/index.po    2014-01-29 16:30:51 +0900 (ab44e9d)
+++ _po/ja/reference/commands/search/index.po    2014-01-29 16:38:23 +0900 (d968647)
@@ -1874,8 +1874,7 @@ msgid ""
 "turned as a hash like:"
 msgstr "`format` が `\"simple\"` の場合、個々の検索クエリの結果は以下の形を取ります。"
 
-msgid ""
-"    {\n"
+msgid "    {\n"
 "      \"startTime\"   : \"<Time to start the operation>\",\n"
 "      \"elapsedTime\" : <Elapsed time to process the query),\n"
 "      \"count\"       : <Total number of search result records>,\n"
@@ -1889,9 +1888,9 @@ msgid ""
 "        { \"name\"       : \"<Name of the column 3 (with subrecords)>\"\n"
 "          \"attributes\" : [\n"
 "          { \"name\"   : \"<Name of the column 3-1>\",\n"
-"            \"type\"   : \"<Type of the column 3-2>\",\n"
+"            \"type\"   : \"<Type of the column 3-1>\",\n"
 "            \"vector\" : <It this column is a vector column?> },\n"
-"          { \"name\"   : \"<Name of the the column 3-1>\",\n"
+"          { \"name\"   : \"<Name of the the column 3-2>\",\n"
 "            \"type\"   : \"<Type of the the column 3-2>\",\n"
 "            \"vector\" : <It this column is a vector column?> },\n"
 "          ],\n"
@@ -2089,7 +2088,55 @@ msgid ""
 "eturned as a hash like:"
 msgstr "`format` が `\"complex\"` の場合、個々の検索クエリの結果は以下の形を取ります。"
 
-msgid ""
+msgid "    {\n"
+"      \"startTime\"   : \"<Time to start the operation>\",\n"
+"      \"elapsedTime\" : <Elapsed time to process the query),\n"
+"      \"count\"       : <Total number of search result records>,\n"
+"      \"attributes\"  : {\n"
+"        \"<Name of the column 1>\" : { \"type\"   : \"<Type of the column 1>\",\n"
+"                                     \"vector\" : <It this column is a vector column?> },\n"
+"        \"<Name of the column 2>\" : { \"type\"   : \"<Type of the column 2>\",\n"
+"                                     \"vector\" : <It this column is a vector column?> },\n"
+"        \"<Name of the column 3 (with subrecords)>\" : {\n"
+"          \"attributes\" : {\n"
+"            \"<Name of the column 3-1>\" : { \"type\"   : \"<Type of the column 3-1>\",\n"
+"                                           \"vector\" : <It this column is a vector column?> },\n"
+"            \"<Name of the column 3-2>\" : { \"type\"   : \"<Type of the column 3-2>\",\n"
+"                                           \"vector\" : <It this column is a vector column?> },\n"
+"            ...\n"
+"          }\n"
+"        },\n"
+"        ...\n"
+"      ],\n"
+"      \"records\"     : [\n"
+"        { \"<Name of the column 1>\" : <Value of the column 1 of the record 1>,\n"
+"          \"<Name of the column 2>\" : <Value of the column 2 of the record 1>,\n"
+"          \"<Name of the column 3 (with subrecords)>\" : [\n"
+"            { \"<Name of the column 3-1>\" : <Value of the column 3-1 of the subrecord 1 of record 1>,\n"
+"              \"<Name of the column 3-2>\" : <Value of the column 3-2 of the subrecord 1 of record 1>,\n"
+"              ... },\n"
+"            { \"<Name of the column 3-1>\" : <Value of the column 3-1 of the subrecord 2 of record 1>,\n"
+"              \"<Name of the column 3-2>\" : <Value of the column 3-2 of the subrecord 2 of record 1>,\n"
+"              ... },\n"
+"            ...\n"
+"          ],\n"
+"          ...                                                                },\n"
+"        { \"<Name of the column 1>\" : <Value of the column 1 of the record 2>,\n"
+"          \"<Name of the column 2>\" : <Value of the column 2 of the record 2>,\n"
+"          \"<Name of the column 3 (with subrecords)>\" : [\n"
+"            { \"<Name of the column 3-1>\" : <Value of the column 3-1 of the subrecord 1 of record 2>,\n"
+"              \"<Name of the column 3-2>\" : <Value of the column 3-2 of the subrecord 1 of record 2>,\n"
+"              ... },\n"
+"            { \"<Name of the column 3-1>\" : <Value of the column 3-1 of the subrecord 2 of record 2>,\n"
+"              \"<Name of the column 3-2>\" : <Value of the column 3-2 of the subrecord 2 of record 2>,\n"
+"              ... },\n"
+"            ...\n"
+"          ],\n"
+"          ...                                                                },\n"
+"        ...\n"
+"      ]\n"
+"    }"
+msgstr ""
 "    {\n"
 "      \"startTime\"   : \"<検索を開始した時刻>\",\n"
 "      \"elapsedTime\" : <検索にかかった時間),\n"
@@ -2140,7 +2187,6 @@ msgid ""
 "        ...\n"
 "      ]\n"
 "    }"
-msgstr ""
 
 msgid ""
 "This format is designed to keep human readability, instead of less traffic.\n"

  Modified: ja/reference/commands/search/index.md (+47 -46)
===================================================================
--- ja/reference/commands/search/index.md    2014-01-29 16:30:51 +0900 (12bb8c5)
+++ ja/reference/commands/search/index.md    2014-01-29 16:38:23 +0900 (cc065ab)
@@ -423,7 +423,7 @@ Personテーブル(主キーあり):
          "body" : {
            "sexuality" : {
              "count" : 2,
-             "records" : 
+             "records" :
                ["female", 2],
                ["male", 7]
              ]
@@ -444,7 +444,7 @@ Personテーブル(主キーあり):
             "groupBy" : {
               "keys"           : "sex",
               "maxNSubRecords" : 2
-            }, 
+            },
             "output"  : {
               "elements"   : ["count", "records"],
               "attributes" : [
@@ -466,7 +466,7 @@ Personテーブル(主キーあり):
          "body" : {
            "sexuality" : {
              "count" : 2,
-             "records" : 
+             "records" :
                ["female", 2, [["Alice Arnold"], ["Alice Miller"]]],
                ["male",   7, [["Alice Cooper"], ["Bob Dole"]]]
              ]
@@ -576,7 +576,7 @@ Personテーブル(主キーあり):
            },
            "sexuality" : {
              "count" : 2,
-             "records" : 
+             "records" :
                ["female", 2],
                ["male", 1]
              ]
@@ -1099,24 +1099,24 @@ Droongaはそのカラムの値が同じであるレコードを集約し、カ
         { "name"   : "<カラム2の名前>",
           "type"   : "<カラム2の型>",
           "vector" : <カラム2がベクターカラムかどうか> },
-        { "name"   : "<カラム3(サブレコードが存在する場合)の名前>",
-          "attributes" : {
-            { "name"   : "<カラム3-1のカラムの名前>",
-              "type"   : "<カラム3-1のカラムの型">,
-              "vector" : "<カラム3-1のベクターカラムかどうか>"
-            },
-            { "name"   : "<カラム3-2のカラムの名前>",
-              "type"   : "<カラム3-2のカラムの型">,
-              "vector" : "<カラム3-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-1の値>,
            <レコード1のサブレコード1のカラム3-2の値>,
            ...],
           [<レコード1のサブレコード2のカラム3-1の値>,
@@ -1126,7 +1126,8 @@ Droongaはそのカラムの値が同じであるレコードを集約し、カ
          ...],
         [<レコード2のカラム1の値>,
          <レコード2のカラム2の値>,
-         [[<レコード2のサブレコード1のカラム3-1の値>,
+         [
+          [<レコード2のサブレコード1のカラム3-1の値>,
            <レコード2のサブレコード1のカラム3-2の値>,
            ...],
           [<レコード2のサブレコード2のカラム3-1の値>,
@@ -1145,7 +1146,7 @@ Droongaはそのカラムの値が同じであるレコードを集約し、カ
 
 出力されたレコードのカラムについての情報の配列で、[検索クエリの `output`](#query-output) における `attributes` で指定された順番で個々のカラムの情報を含みます。
 
-個々のカラムの情報はハッシュの形をとり、以下の3種類のうち何れかで表されます。
+個々のカラムの情報はハッシュの形をとり、その形式はレコードの値に応じて以下の3種類で与えられます。ハッシュのキーと値は以下のとおりです。
 
 ###### 通常のカラム
 
@@ -1168,10 +1169,9 @@ Droongaはそのカラムの値が同じであるレコードを集約し、カ
 `name`
 : カラムの出力名の文字列です。[検索クエリの `output`](#query-output) における `attributes` の指定内容に基づきます。
 
-`attributes`
-: サブレコードのカラム情報を含む配列です。主結果の `attributes` と同様の形式が再帰的に含まれます。
+サブレコードのカラム情報を含む配列です。この形式は主レコードの `attributes` と同様です。つまり `attribuets` は再帰的な構造になっています。
 
-###### 式に対応するカラム
+###### 式
 
 `name`
 : カラムの出力名の文字列です。[検索クエリの `output`](#query-output) における `attributes` の指定内容に基づきます。
@@ -1194,36 +1194,44 @@ Droongaはそのカラムの値が同じであるレコードを集約し、カ
       "count"       : <検索結果のレコードの総数>,
       "attributes"  : {
         "<カラム1の名前>" : { "type"   : "<カラム1の型>",
-                                "vector" : <カラム1がベクターカラムかどうか> },
+                                     "vector" : <カラム1がベクターカラムかどうか> },
         "<カラム2の名前>" : { "type"   : "<カラム2の型>",
-                                "vector" : <カラム2がベクターカラムかどうか> },
+                                     "vector" : <カラム2がベクターカラムかどうか> },
         "<カラム3(サブレコードが存在する場合)の名前>" : {
-          "attributes": {
+          "attributes" : {
             "<カラム3-1の名前>" : { "type"   : "<カラム3-1の型>",
-                                    "vector" : <カラム3-1がベクターカラムかどうか> },
+                                           "vector" : <カラム3-1がベクターカラムかどうか> },
+            "<カラム3-2の名前>" : { "type"   : "<カラム3-2の型>",
+                                           "vector" : <カラム3-2のベクターカラムかどうか> },
             ...
           }
-        }
+        },
         ...
       ],
       "records"     : [
         { "<カラム1の名前>" : <レコード1のカラム1の値>,
           "<カラム2の名前>" : <レコード1のカラム2の値>,
-          "<カラム3の名前>" : [
+          "<カラム3の名前(サブレコードが存在する場合)>" : [
             { "<カラム3-1の名前>" : <レコード1のサブレコード1のカラム3-1の値>,
-            ...},
+              "<カラム3-2の名前>" : <レコード1のサブレコード1のカラム3-2の値>,
+              ... },
             { "<カラム3-1の名前>" : <レコード1のサブレコード2のカラム3-1の値>,
-            ...},
-          ]
+              "<カラム3-2の名前>" : <レコード1のサブレコード2のカラム3-2の値>,
+              ... },
+            ...
+          ],
           ...                                                                },
         { "<カラム1の名前>" : <レコード2のカラム1の値>,
           "<カラム2の名前>" : <レコード2のカラム2の値>,
-          "<カラム3の名前>" : [
+          "<カラム3の名前(サブレコードが存在する場合)>" : [
             { "<カラム3-1の名前>" : <レコード2のサブレコード1のカラム3-1の値>,
-            ...},
+              "<カラム3-2の名前>" : <レコード2のサブレコード1のカラム3-2の値>,
+              ... },
             { "<カラム3-1の名前>" : <レコード2のサブレコード2のカラム3-1の値>,
-            ...},
-          ]
+              "<カラム3-2の名前>" : <レコード2のサブレコード2のカラム3-2の値>,
+              ... },
+            ...
+          ],
           ...                                                                },
         ...
       ]
@@ -1236,8 +1244,7 @@ Droongaはそのカラムの値が同じであるレコードを集約し、カ
 
 出力されたレコードのカラムについての情報を含むハッシュで、[検索クエリの `output`](#query-output) における `attributes` で指定された出力カラム名がキー、カラムの情報が値となります。
 
-個々のカラムの情報はハッシュの形をとり、以下の3種類のうち何れかで表されます。
-
+個々のカラムの情報はハッシュの形をとり、その形式はレコードの値に応じて以下の3種類で与えられます。ハッシュのキーと値は以下のとおりです。
 
 ###### 通常のカラム
 
@@ -1254,17 +1261,11 @@ Droongaはそのカラムの値が同じであるレコードを集約し、カ
 
 ###### サブレコードに対応するカラム
 
-`type`
-: カラムの値の型を示す文字列です。
-  値は[Groonga のプリミティブなデータ型](http://groonga.org/ja/docs/reference/types.html)の名前か、もしくはテーブル名です。
-
-`attributes`
-: サブレコードのカラム情報を含むハッシュです。主結果の `attributes` と同様の形式が再帰的に含まれます。
+サブレコードのカラム情報を含む配列です。この形式は主レコードの `attributes` と同様です。つまり `attribuets` は再帰的な構造になっています。
 
-###### 式に対応するカラム
+###### 式
 
-`name`
-: カラムの出力名の文字列です。[検索クエリの `output`](#query-output) における `attributes` の指定内容に基づきます。
+キーはありません。空のハッシュ `{}` です。
 
 ##### `records` {#response-query-complex-records}
 
-------------- next part --------------
HTML����������������������������...
Download 



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