Debian Codegraph @

test/command/suite/select/query/match/with_index/sequential_reference_column.test

raw
1 #$GRN_EXPR_OPTIMIZE=no
2 #$GRN_II_SELECT_TOO_MANY_INDEX_MATCH_RATIO_REFERENCE=0.7
3
4 table_create Tags TABLE_HASH_KEY ShortText
5
6 table_create Memos TABLE_HASH_KEY ShortText
7 column_create Memos tag COLUMN_SCALAR Tags
8
9 load --table Memos
10 [
11 {"_key": "Rroonga is fast!", "tag": "Rroonga"},
12 {"_key": "Groonga is fast!", "tag": "Groonga"},
13 {"_key": "Mroonga is fast!", "tag": "Mroonga"},
14 {"_key": "Groonga sticker!", "tag": "Groonga"},
15 {"_key": "Groonga is good!", "tag": "Groonga"}
16 ]
17
18 column_create Tags memos_tag COLUMN_INDEX Memos tag
19
20 log_level --level info
21 #@add-important-log-levels info
22 #@add-ignore-log-pattern /\A\[io\]/
23 select Memos --query '_id:>=3 tag:@Groonga' --output_columns _id,_score,_key,tag
24 #@remove-ignore-log-pattern /\A\[io\]/
25 #@remove-important-log-levels info
26 log_level --level notice