| 1 |
table_create Users TABLE_HASH_KEY ShortText |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Users full_name COLUMN_SCALAR ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Bookmarks TABLE_HASH_KEY ShortText |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Bookmarks users COLUMN_VECTOR Users |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Users |
| 10 |
[ |
| 11 |
{"_key": "mori", "full_name": "Daijiro MORI"}, |
| 12 |
{"_key": "s-yata", "full_name": "Susumu Yata"} |
| 13 |
] |
| 14 |
[[0,0.0,0.0],2] |
| 15 |
load --table Bookmarks |
| 16 |
[ |
| 17 |
{"_key": "http://groonga.org/", "users": ["mori", "s-yata"]} |
| 18 |
] |
| 19 |
[[0,0.0,0.0],1] |
| 20 |
select Bookmarks --output_columns _key,users.full_name --output_type xml |
| 21 |
<?xml version="1.0" encoding="utf-8"?> |
| 22 |
<SEGMENTS> |
| 23 |
<SEGMENT> |
| 24 |
<RESULTPAGE> |
| 25 |
<RESULTSET OFFSET="0" LIMIT="1" NHITS="1"> |
| 26 |
<HIT NO="1"> |
| 27 |
<FIELD NAME="_key">http://groonga.org/</FIELD> |
| 28 |
<FIELD NAME="users.full_name">Daijiro MORI, Susumu Yata</FIELD> |
| 29 |
</HIT> |
| 30 |
</RESULTSET> |
| 31 |
</RESULTPAGE> |
| 32 |
</SEGMENT> |
| 33 |
</SEGMENTS> |
| 34 |
|
| 35 |
|