Debian Codegraph @

test/command/suite/load/index/online/key_twice.test

raw
1 table_create Users TABLE_HASH_KEY ShortText
2
3 table_create Index1 TABLE_PAT_KEY --key_type ShortText \
4 --default_tokenizer TokenBigramSplitSymbolAlpha
5 column_create Index1 users_key COLUMN_INDEX Users _key
6
7 table_create Index2 TABLE_PAT_KEY --key_type ShortText \
8 --default_tokenizer TokenBigramSplitSymbolAlpha
9 column_create Index2 users_key COLUMN_INDEX Users _key
10
11 load --table Users
12 [
13 ["_key"],
14 ["Alice"],
15 ["Bob"]
16 ]
17
18 select Users \
19 --match_columns "Index1.users_key * 10 || Index2.users_key * 5" \
20 --query "li" \
21 --output_columns _key,_score