| 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|WEIGHT_FLOAT32 Tags |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
load --table Memos |
| 8 |
[ |
| 9 |
{ |
| 10 |
"_key": "Groonga is fast", |
| 11 |
"tags": { |
| 12 |
"groonga": 2.8, |
| 13 |
"full text search": 1.2 |
| 14 |
} |
| 15 |
} |
| 16 |
] |
| 17 |
[[0,0.0,0.0],1] |
| 18 |
select Memos |
| 19 |
[ |
| 20 |
[ |
| 21 |
0, |
| 22 |
0.0, |
| 23 |
0.0 |
| 24 |
], |
| 25 |
[ |
| 26 |
[ |
| 27 |
[ |
| 28 |
1 |
| 29 |
], |
| 30 |
[ |
| 31 |
[ |
| 32 |
"_id", |
| 33 |
"UInt32" |
| 34 |
], |
| 35 |
[ |
| 36 |
"_key", |
| 37 |
"ShortText" |
| 38 |
], |
| 39 |
[ |
| 40 |
"tags", |
| 41 |
"Tags" |
| 42 |
] |
| 43 |
], |
| 44 |
[ |
| 45 |
1, |
| 46 |
"Groonga is fast", |
| 47 |
{ |
| 48 |
"groonga": 2.8, |
| 49 |
"full text search": 1.2 |
| 50 |
} |
| 51 |
] |
| 52 |
] |
| 53 |
] |
| 54 |
] |