Debian Codegraph @

test/command/suite/select/env/overlap_token_skip/skip.test

raw
1 #$GRN_II_OVERLAP_TOKEN_SKIP_ENABLE=yes
2
3 plugin_register token_filters/stop_word
4
5 table_create Entries TABLE_NO_KEY
6 column_create Entries body COLUMN_SCALAR ShortText
7
8 table_create Terms TABLE_PAT_KEY ShortText \
9 --default_tokenizer TokenBigram \
10 --normalizer NormalizerAuto \
11 --token_filters TokenFilterStopWord
12
13 load --table Entries
14 [
15 {"body": "This is a pen"}
16 ]
17
18 column_create Terms index COLUMN_INDEX|WITH_POSITION Entries body
19 column_create Terms is_stop_word COLUMN_SCALAR Bool
20
21 load --table Terms
22 [
23 {"_key": "is", "is_stop_word": true},
24 {"_key": "a", "is_stop_word": true}
25 ]
26
27 table_tokenize Terms "This is a pen" --index_column index
28
29 log_level --level debug
30 #@add-important-log-levels debug
31 #@add-ignore-log-pattern /\A\[io\]/
32 select Entries --filter 'body @ "This is a pen"'
33 #@remove-ignore-log-pattern /\A\[io\]/
34 #@remove-important-log-levels debug
35 log_level --level notice