Debian Codegraph @

test/command/suite/select/match_columns/section/by_name/4_items/descending.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 column_create Memos comment COLUMN_SCALAR ShortText
5 column_create Memos category COLUMN_SCALAR ShortText
6
7 table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
8 column_create Lexicon memo_index COLUMN_INDEX|WITH_POSITION|WITH_SECTION \
9 Memos title,content,comment,category
10
11 load --table Memos
12 [
13 ["title", "content", "comment", "category"],
14 ["Groonga", "Start Groonga!", "Groonga!", "Groonga"],
15 ["Mroonga", "Start Mroonga!", "Mroonga!", "Mroonga"],
16 ["Rroonga", "Start Rroonga!", "Rroonga!", "Rroonga"],
17 ["Ruby", "Start Ruby!", "Ruby!", "Ruby"],
18 ["learn", "Learning Ruby and Groonga...", "learn!", "learn"]
19 ]
20
21 select Memos \
22 --match_columns "Lexicon.memo_index.category || Lexicon.memo_index.comment || Lexicon.memo_index.content || Lexicon.memo_index.title" \
23 --query Rroonga \
24 --output_columns "title, content, _score"