Debian Codegraph @

test/command/suite/select/function/query/options/options.test

raw
1 plugin_register token_filters/stop_word
2
3 table_create Memos TABLE_NO_KEY
4 column_create Memos content COLUMN_SCALAR ShortText
5
6 table_create Terms TABLE_PAT_KEY ShortText \
7 --default_tokenizer TokenBigram \
8 --normalizer NormalizerAuto \
9 --token_filters TokenFilterStopWord
10 column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content
11 column_create Terms is_stop_word COLUMN_SCALAR Bool
12
13 load --table Terms
14 [
15 {"_key": "and", "is_stop_word": true}
16 ]
17
18 load --table Memos
19 [
20 {"content": "Hello"},
21 {"content": "Hello and Good-bye"},
22 {"content": "Good-bye"}
23 ]
24
25 select Memos \
26 --filter 'query("content", \
27 "Hello and", \
28 {"options": {"TokenFilterStopWord.enable": false}})' \
29 --match_escalation_threshold -1 \
30 --sort_keys -_score