Debian Codegraph @

test/command/suite/select/query/match/with_index/sequential_text_key.expected

raw
1 table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram
2 [[0,0.0,0.0],true]
3 table_create Memos TABLE_HASH_KEY ShortText
4 [[0,0.0,0.0],true]
5 load --table Memos
6 [
7 {"_key": "Rroonga is fast!"},
8 {"_key": "Groonga is fast!"},
9 {"_key": "Mroonga is fast!"},
10 {"_key": "Groonga sticker!"},
11 {"_key": "Groonga is good!"}
12 ]
13 [[0,0.0,0.0],5]
14 column_create Terms memos_body COLUMN_INDEX|WITH_POSITION Memos _key
15 [[0,0.0,0.0],true]
16 log_level --level info
17 [[0,0.0,0.0],true]
18 select Memos --query '_id:>=3 _key:@"Groonga"' --output_columns _id,_score,_key
19 [
20 [
21 0,
22 0.0,
23 0.0
24 ],
25 [
26 [
27 [
28 2
29 ],
30 [
31 [
32 "_id",
33 "UInt32"
34 ],
35 [
36 "_score",
37 "Int32"
38 ],
39 [
40 "_key",
41 "ShortText"
42 ]
43 ],
44 [
45 4,
46 2,
47 "Groonga sticker!"
48 ],
49 [
50 5,
51 2,
52 "Groonga is good!"
53 ]
54 ]
55 ]
56 ]
57 #|i| [table-selector][select][index][range][id] <Memos>
58 #|i| [object][search][index][key][exact] <Terms.memos_body>
59 #|i| grn_ii_sel > (Groonga)
60 #|i| [ii][select] n=6 (Groonga)
61 #|i| [ii][select][index-not-used][text] <Terms.memos_body>: enough filtered and index search will match many records: 3 <= 3.50: n-existing-records:3 estimated-size:5 ratio:70.00%
62 #|i| exact: 3
63 #|i| hits=3
64 log_level --level notice
65 [[0,0.0,0.0],true]