Debian Codegraph @

test/command/suite/select/query_expansion/with_expander.test

raw
1 table_create Memos TABLE_NO_KEY
2 column_create Memos content COLUMN_SCALAR ShortText
3
4 table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
5 column_create Lexicon diary_content COLUMN_INDEX|WITH_POSITION Memos content
6
7 table_create Synonyms TABLE_PAT_KEY ShortText
8 column_create Synonyms expansion COLUMN_SCALAR ShortText
9 column_create Synonyms expander COLUMN_SCALAR ShortText
10
11 load --table Memos
12 [
13 ["content"],
14 ["Start groonga!"],
15 ["Start mroonga!"],
16 ["Start rroonga!"],
17 ["Start Ruby!"]
18 ]
19
20 load --table Synonyms
21 [
22 ["_key", "expansion", "expander"],
23 ["groonga", "(groonga OR rroonga OR mroonga)", "(groonga OR rroonga)"]
24 ]
25
26 select --table Memos \
27 --query_expansion Synonyms.expansion \
28 --query_expander Synonyms.expander \
29 --match_columns content --query groonga