| 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 auto --output_columns '*,_score' |
| 18 |
[ |
| 19 |
[ |
| 20 |
0, |
| 21 |
0.0, |
| 22 |
0.0 |
| 23 |
], |
| 24 |
[ |
| 25 |
[ |
| 26 |
[ |
| 27 |
3 |
| 28 |
], |
| 29 |
[ |
| 30 |
[ |
| 31 |
"content", |
| 32 |
"Text" |
| 33 |
], |
| 34 |
[ |
| 35 |
"_score", |
| 36 |
"Int32" |
| 37 |
] |
| 38 |
], |
| 39 |
[ |
| 40 |
"Groonga is fast", |
| 41 |
1 |
| 42 |
], |
| 43 |
[ |
| 44 |
"Groonga is the fastest", |
| 45 |
1 |
| 46 |
], |
| 47 |
[ |
| 48 |
"Groonga is faster", |
| 49 |
1 |
| 50 |
] |
| 51 |
] |
| 52 |
] |
| 53 |
] |