Debian Codegraph @

test/command/suite/select/query_flags/allow_leading_not.test

raw
1 table_create Entries TABLE_PAT_KEY ShortText
2 column_create Entries content COLUMN_SCALAR Text
3
4 table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
5 column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content
6
7 load --table Entries
8 [
9 {"_key": "The first post!",
10 "content": "Welcome! This is my first post!"},
11 {"_key": "Groonga",
12 "content": "I started to use groonga. It's very fast!"},
13 {"_key": "Mroonga",
14 "content": "I also started to use mroonga. It's also very fast! Really fast!"},
15 {"_key": "Good-bye Senna",
16 "content": "I migrated all Senna system!"},
17 {"_key": "Good-bye Tritonn",
18 "content": "I also migrated all Tritonn system!"}
19 ]
20
21 select Entries \
22 --output_columns '_key,content,_score' \
23 --match_columns content --query '-fast' \
24 --query_flags ALLOW_LEADING_NOT \
25 --sort_keys _key