| 1 |
table_create Users TABLE_HASH_KEY ShortText |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Users tags COLUMN_VECTOR|WITH_WEIGHT ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
load --table Users |
| 6 |
[ |
| 7 |
{"_key": "alice", "tags": {"wonder": 100}} |
| 8 |
] |
| 9 |
[[0,0.0,0.0],1] |
| 10 |
table_create Tags TABLE_HASH_KEY ShortText |
| 11 |
[[0,0.0,0.0],true] |
| 12 |
column_create Tags users_tags COLUMN_INDEX|WITH_WEIGHT Users tags |
| 13 |
[[0,0.0,0.0],true] |
| 14 |
select Users --filter true --scorer '_score = (tags @ "wonder")' --output_columns _score |
| 15 |
[[0,0.0,0.0],[[[1],[["_score","Int32"]],[1]]]] |