| 1 |
table_create Diaries TABLE_NO_KEY |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Diaries content COLUMN_SCALAR ShortText |
| 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 diaries_content COLUMN_INDEX|WITH_POSITION Diaries content |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Diaries |
| 10 |
[ |
| 11 |
{"content": "It'll be fine tomorrow as well."}, |
| 12 |
{"content": "It'll rain tomorrow."}, |
| 13 |
{"content": "It's fine today. It'll be fine tomorrow as well."}, |
| 14 |
{"content": "It's fine today. But it'll rain tomorrow."}, |
| 15 |
{"content": "Ring the bell."}, |
| 16 |
{"content": "I love dumbbells."} |
| 17 |
] |
| 18 |
[[0,0.0,0.0],6] |
| 19 |
select --table Diaries --match_columns content --query "t*" --output_columns content,_score --sortby _id |
| 20 |
[ |
| 21 |
[ |
| 22 |
0, |
| 23 |
0.0, |
| 24 |
0.0 |
| 25 |
], |
| 26 |
[ |
| 27 |
[ |
| 28 |
[ |
| 29 |
5 |
| 30 |
], |
| 31 |
[ |
| 32 |
[ |
| 33 |
"content", |
| 34 |
"ShortText" |
| 35 |
], |
| 36 |
[ |
| 37 |
"_score", |
| 38 |
"Int32" |
| 39 |
] |
| 40 |
], |
| 41 |
[ |
| 42 |
"It'll be fine tomorrow as well.", |
| 43 |
1 |
| 44 |
], |
| 45 |
[ |
| 46 |
"It'll rain tomorrow.", |
| 47 |
1 |
| 48 |
], |
| 49 |
[ |
| 50 |
"It's fine today. It'll be fine tomorrow as well.", |
| 51 |
2 |
| 52 |
], |
| 53 |
[ |
| 54 |
"It's fine today. But it'll rain tomorrow.", |
| 55 |
2 |
| 56 |
], |
| 57 |
[ |
| 58 |
"Ring the bell.", |
| 59 |
1 |
| 60 |
] |
| 61 |
] |
| 62 |
] |
| 63 |
] |