Debian Codegraph @

test/command/suite/select/match_columns/section/by_name/1_item/weight.test

raw
1 table_create Memos TABLE_NO_KEY
2 column_create Memos title COLUMN_SCALAR ShortText
3 column_create Memos content COLUMN_SCALAR ShortText
4
5 table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
6 column_create Lexicon memo_index COLUMN_INDEX|WITH_POSITION|WITH_SECTION \
7 Memos title,content
8
9 load --table Memos
10 [
11 ["title", "content"],
12 ["groonga", "Start groonga!"],
13 ["mroonga", "Start mroonga!"],
14 ["rroonga", "Start rroonga!"],
15 ["Ruby", "Start Ruby!"],
16 ["learn", "Learning Ruby and groonga..."]
17 ]
18
19 select Memos \
20 --match_columns "Lexicon.memo_index.title * 10" \
21 --query Ruby \
22 --output_columns "title, content, _score"