Debian Codegraph @

test/command/suite/select/match_columns/section/by_index/1_item/weight.expected

raw
1 table_create Memos TABLE_NO_KEY
2 [[0,0.0,0.0],true]
3 column_create Memos title COLUMN_SCALAR ShortText
4 [[0,0.0,0.0],true]
5 column_create Memos content COLUMN_SCALAR ShortText
6 [[0,0.0,0.0],true]
7 table_create Lexicon TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
8 [[0,0.0,0.0],true]
9 column_create Lexicon memo_index COLUMN_INDEX|WITH_POSITION|WITH_SECTION Memos title,content
10 [[0,0.0,0.0],true]
11 load --table Memos
12 [
13 ["title", "content"],
14 ["Groonga", "Start Groonga!"],
15 ["Mroonga", "Start Mroonga!"],
16 ["Rroonga", "Start Rroonga!"],
17 ["Ruby", "Start Ruby!"],
18 ["learn", "Learning Ruby and Groonga..."]
19 ]
20 [[0,0.0,0.0],5]
21 select Memos --match_columns "Lexicon.memo_index[0] * 10" --query Ruby --output_columns "title, content, _score"
22 [
23 [
24 0,
25 0.0,
26 0.0
27 ],
28 [
29 [
30 [
31 1
32 ],
33 [
34 [
35 "title",
36 "ShortText"
37 ],
38 [
39 "content",
40 "ShortText"
41 ],
42 [
43 "_score",
44 "Int32"
45 ]
46 ],
47 [
48 "Ruby",
49 "Start Ruby!",
50 10
51 ]
52 ]
53 ]
54 ]