| 1 |
table_create Memos TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Memos title COLUMN_SCALAR ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Memos content COLUMN_SCALAR Text |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
column_create Terms title_index COLUMN_INDEX|WITH_POSITION Memos title |
| 10 |
[[0,0.0,0.0],true] |
| 11 |
column_create Terms content_index COLUMN_INDEX|WITH_POSITION Memos content |
| 12 |
[[0,0.0,0.0],true] |
| 13 |
load --table Memos |
| 14 |
[ |
| 15 |
{"title": "Groonga1", "content": "Groonga is fast"}, |
| 16 |
{"title": "Groonga2", "content": "Groonga is the fastest"}, |
| 17 |
{"title": "Groonga3", "content": "Groonga is faster"}, |
| 18 |
{"title": "Groonga4", "content": "Groonga is not slow"} |
| 19 |
] |
| 20 |
[[0,0.0,0.0],4] |
| 21 |
select Memos --match_columns content,title --query 'fas' --filter '(true || true)' --match_escalation yes --output_columns '*,_score' |
| 22 |
[ |
| 23 |
[ |
| 24 |
0, |
| 25 |
0.0, |
| 26 |
0.0 |
| 27 |
], |
| 28 |
[ |
| 29 |
[ |
| 30 |
[ |
| 31 |
3 |
| 32 |
], |
| 33 |
[ |
| 34 |
[ |
| 35 |
"content", |
| 36 |
"Text" |
| 37 |
], |
| 38 |
[ |
| 39 |
"title", |
| 40 |
"ShortText" |
| 41 |
], |
| 42 |
[ |
| 43 |
"_score", |
| 44 |
"Int32" |
| 45 |
] |
| 46 |
], |
| 47 |
[ |
| 48 |
"Groonga is fast", |
| 49 |
"Groonga1", |
| 50 |
4 |
| 51 |
], |
| 52 |
[ |
| 53 |
"Groonga is the fastest", |
| 54 |
"Groonga2", |
| 55 |
4 |
| 56 |
], |
| 57 |
[ |
| 58 |
"Groonga is faster", |
| 59 |
"Groonga3", |
| 60 |
4 |
| 61 |
] |
| 62 |
] |
| 63 |
] |
| 64 |
] |
| 65 |
#>select --filter "(true || true)" --match_columns "content,title" --match_escalation "yes" --output_columns "*,_score" --query "fas" --table "Memos" |
| 66 |
#:000000000000000 filter(4): true |
| 67 |
#:000000000000000 filter(4): true |
| 68 |
#:000000000000000 filter(3): (match columns) match "fas" |
| 69 |
#:000000000000000 select(3) |
| 70 |
#:000000000000000 output(3) |
| 71 |
#:000000000000000 send(0) |
| 72 |
#<000000000000000 rc=0 |