Debian Codegraph @

test/command/suite/select/query/near_phrase_product/and.test

raw
1 table_create Entries TABLE_NO_KEY
2 column_create Entries content COLUMN_SCALAR Text
3
4 table_create Terms TABLE_PAT_KEY ShortText \
5 --default_tokenizer TokenNgram \
6 --normalizer NormalizerNFKC121
7 column_create Terms entries_content COLUMN_INDEX|WITH_POSITION Entries content
8
9 load --table Entries
10 [
11 {"content": "c * 3"},
12 {"content": "a * 7 * 8 * 9 * x"},
13 {"content": "a * b * 1 * x * * 9 * y"},
14 {"content": "x y z"}
15 ]
16
17 select Entries \
18 --match_columns content \
19 --query '*NPP1"(a b c) (1 2 3)" *NPP1"(7 8 9) (x y z)"' \
20 --output_columns '_score, content'