Debian Codegraph @

test/command/suite/select/match_escalation/match_columns.test

raw
1 table_create Memos TABLE_NO_KEY
2 column_create Memos title COLUMN_SCALAR ShortText
3 column_create Memos content COLUMN_SCALAR Text
4
5 table_create Terms TABLE_PAT_KEY ShortText \
6 --default_tokenizer TokenBigram \
7 --normalizer NormalizerAuto
8 column_create Terms title_index COLUMN_INDEX|WITH_POSITION Memos title
9 column_create Terms content_index COLUMN_INDEX|WITH_POSITION Memos content
10
11 load --table Memos
12 [
13 {"title": "Groonga1", "content": "Groonga is fast"},
14 {"title": "Groonga2", "content": "Groonga is the fastest"},
15 {"title": "Groonga3", "content": "Groonga is faster"},
16 {"title": "Groonga4", "content": "Groonga is not slow"}
17 ]
18
19 #$GRN_QUERY_LOG_SHOW_CONDITION=yes
20 #@collect-query-log true
21 select Memos \
22 --match_columns content,title \
23 --query 'fas' \
24 --filter '(true || true)' \
25 --match_escalation yes \
26 --output_columns '*,_score'
27 #@collect-query-log false