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