| 1 |
#$GRN_IN_VALUES_TOO_MANY_INDEX_MATCH_RATIO=0.7 |
| 2 |
|
| 3 |
table_create Tags TABLE_HASH_KEY ShortText |
| 4 |
|
| 5 |
table_create Memos TABLE_HASH_KEY ShortText |
| 6 |
column_create Memos tag COLUMN_SCALAR Tags |
| 7 |
|
| 8 |
load --table Memos |
| 9 |
[ |
| 10 |
{"_key": "Rroonga is fast!", "tag": "Rroonga"}, |
| 11 |
{"_key": "Groonga is fast!", "tag": "Groonga"}, |
| 12 |
{"_key": "Mroonga is fast!", "tag": "Mroonga"}, |
| 13 |
{"_key": "Groonga sticker!", "tag": "Groonga"}, |
| 14 |
{"_key": "Groonga is good!", "tag": "Groonga"} |
| 15 |
] |
| 16 |
|
| 17 |
column_create Tags memos_tag COLUMN_INDEX Memos tag |
| 18 |
|
| 19 |
select Memos --filter '_id >= 3 && in_values(tag, "Groonga")' --output_columns _id,_score,_key,tag |