| 1 |
table_create Memos TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Memos content COLUMN_SCALAR Text |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Terms index COLUMN_INDEX|WITH_POSITION Memos content |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Memos |
| 10 |
[ |
| 11 |
{"content": "Groonga is fast"}, |
| 12 |
{"content": "Groonga is the fastest"}, |
| 13 |
{"content": "Groonga is faster"}, |
| 14 |
{"content": "Groonga is not slow"} |
| 15 |
] |
| 16 |
[[0,0.0,0.0],4] |
| 17 |
select Memos --filter 'content @ "fas"' --match_escalation no --output_columns '*,_score' |
| 18 |
[[0,0.0,0.0],[[[0],[["content","Text"],["_score","Int32"]]]]] |