Debian Codegraph @

test/command/suite/select/scorer/expression/res_vector.test

raw
1 plugin_register functions/vector
2
3 table_create Memos TABLE_HASH_KEY ShortText
4 column_create Memos categories COLUMN_VECTOR ShortText
5
6 load --table Memos
7 [
8 {"_key": "Groonga", "categories": ["full-text-search"]}
9 ]
10
11 select \
12 --filter "true" \
13 --output_columns "_key, _score" \
14 --scorer "(_score = _score + (vector_size(categories) > 0))" \
15 --table "Memos"