| 1 |
table_create Tags TABLE_PAT_KEY ShortText |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
table_create Memos TABLE_HASH_KEY ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Memos tags COLUMN_VECTOR|WITH_WEIGHT Tags |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
load --table Memos |
| 8 |
[ |
| 9 |
{ |
| 10 |
"_key": "Mroonga is fast", |
| 11 |
"tags": { |
| 12 |
"mroonga": 100, |
| 13 |
"groonga": 10 |
| 14 |
} |
| 15 |
} |
| 16 |
] |
| 17 |
[[0,0.0,0.0],1] |
| 18 |
select Memos --output_type xml --output_columns _key,tags |
| 19 |
<?xml version="1.0" encoding="utf-8"?> |
| 20 |
<SEGMENTS> |
| 21 |
<SEGMENT> |
| 22 |
<RESULTPAGE> |
| 23 |
<RESULTSET OFFSET="0" LIMIT="1" NHITS="1"> |
| 24 |
<HIT NO="1"> |
| 25 |
<FIELD NAME="_key">Mroonga is fast</FIELD> |
| 26 |
<FIELD NAME="tags">mroonga:100, groonga:10</FIELD> |
| 27 |
</HIT> |
| 28 |
</RESULTSET> |
| 29 |
</RESULTPAGE> |
| 30 |
</SEGMENT> |
| 31 |
</SEGMENTS> |
| 32 |
|
| 33 |
|