Debian Codegraph @

test/command/suite/select/scorer/expression/match_add.expected

raw
1 table_create Users TABLE_HASH_KEY ShortText
2 [[0,0.0,0.0],true]
3 column_create Users tags COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 column_create Users name COLUMN_SCALAR ShortText
6 [[0,0.0,0.0],true]
7 load --table Users
8 [
9 {"_key": "alice", "tags": "wonder", "name": "Alice in Wonderland"}
10 ]
11 [[0,0.0,0.0],1]
12 select Users --filter true --scorer '_score = (tags @ "wonder") + (name @ "Alice") + (name @ "not match")' --output_columns _score
13 [[0,0.0,0.0],[[[1],[["_score","Int32"]],[2]]]]