| 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_columns _key,tags |
| 19 |
[ |
| 20 |
[ |
| 21 |
0, |
| 22 |
0.0, |
| 23 |
0.0 |
| 24 |
], |
| 25 |
[ |
| 26 |
[ |
| 27 |
[ |
| 28 |
1 |
| 29 |
], |
| 30 |
[ |
| 31 |
[ |
| 32 |
"_key", |
| 33 |
"ShortText" |
| 34 |
], |
| 35 |
[ |
| 36 |
"tags", |
| 37 |
"Tags" |
| 38 |
] |
| 39 |
], |
| 40 |
[ |
| 41 |
"Mroonga is fast", |
| 42 |
{ |
| 43 |
"mroonga": 100, |
| 44 |
"groonga": 10 |
| 45 |
} |
| 46 |
] |
| 47 |
] |
| 48 |
] |
| 49 |
] |