Yoji Shidara
null+****@clear*****
Wed Jan 29 14:57:18 JST 2014
Yoji Shidara 2014-01-29 14:57:18 +0900 (Wed, 29 Jan 2014) New Revision: 880dc51dfe358b0642cfb831e011528bb0953617 https://github.com/droonga/droonga.org/commit/880dc51dfe358b0642cfb831e011528bb0953617 Message: Include subrecords in example responses Modified files: reference/commands/search/index.md Modified: reference/commands/search/index.md (+55 -1) =================================================================== --- reference/commands/search/index.md 2014-01-29 14:41:42 +0900 (9a98b23) +++ reference/commands/search/index.md 2014-01-29 14:57:18 +0900 (67c4fd9) @@ -1089,14 +1089,41 @@ A search result with `"simple"` as the value of `output`'s `format` will be retu { "name" : "<Name of the column 2>", "type" : "<Type of the column 2>", "vector" : <It this column is a vector column?> }, + { "name" : "<Name of the column 3 (with subrecords)>" + "attributes" : [ + { "name" : "<Name of the column 3-1>", + "type" : "<Type of the column 3-2>", + "vector" : <It this column is a vector column?> }, + { "name" : "<Name of the the column 3-1>", + "type" : "<Type of the the column 3-2>", + "vector" : <It this column is a vector column?> }, + ], + ... + }, ... ], "records" : [ [<Value of the column 1 of the record 1>, <Value of the column 2 of the record 1>, + [ + [<Value of the column of 3-1 of the subrecord 1 of the record 1>, + <Value of the column of 3-2 of the subrecord 2 of the record 1>, + ...], + [<Value of the column of 3-1 of the subrecord 1 of the record 1>, + <Value of the column of 3-2 of the subrecord 2 of the record 1>, + ...], + ...], ...], [<Value of the column 1 of the record 2>, <Value of the column 2 of the record 2>, + [ + [<Value of the column of 3-1 of the subrecord 1 of the record 2>, + <Value of the column of 3-2 of the subrecord 2 of the record 2>, + ...], + [<Value of the column of 3-1 of the subrecord 1 of the record 2>, + <Value of the column of 3-2 of the subrecord 2 of the record 2>, + ...], + ...], ...], ... ] @@ -1161,14 +1188,41 @@ A search result with `"complex"` as the value of `output`'s `format` will be ret "vector" : <It this column is a vector column?> }, "<Name of the column 2>" : { "type" : "<Type of the column 2>", "vector" : <It this column is a vector column?> }, + "<Name of the column 3 (with subrecords)>" : { + "attributes" : { + "<Name of the column 3-1>" : { "type" : "<Type of the column 3-1>", + "vector" : <It this column is a vector column?> }, + "<Name of the column 3-2>" : { "type" : "<Type of the column 3-2>", + "vector" : <It this column is a vector column?> }, + ... + } + }, ... ], "records" : [ { "<Name of the column 1>" : <Value of the column 1 of the record 1>, "<Name of the column 2>" : <Value of the column 2 of the record 1>, + "<Name of the column 3 (with subrecords)>" : [ + { "<Name of the column 3-1>" : <Value of the column 3-1 of the subrecord 1 of record 1>, + "<Name of the column 3-2>" : <Value of the column 3-2 of the subrecord 1 of record 1>, + ... }, + { "<Name of the column 3-1>" : <Value of the column 3-1 of the subrecord 2 of record 1>, + "<Name of the column 3-2>" : <Value of the column 3-2 of the subrecord 2 of record 1>, + ... }, + ... + ], ... }, - { "<Name of the column 1>" : <Value of the column 1 of the record 1>, + { "<Name of the column 1>" : <Value of the column 1 of the record 2>, "<Name of the column 2>" : <Value of the column 2 of the record 2>, + "<Name of the column 3 (with subrecords)>" : [ + { "<Name of the column 3-1>" : <Value of the column 3-1 of the subrecord 1 of record 2>, + "<Name of the column 3-2>" : <Value of the column 3-2 of the subrecord 1 of record 2>, + ... }, + { "<Name of the column 3-1>" : <Value of the column 3-1 of the subrecord 2 of record 2>, + "<Name of the column 3-2>" : <Value of the column 3-2 of the subrecord 2 of record 2>, + ... }, + ... + ], ... }, ... ] -------------- next part -------------- HTML����������������������������...Download