| 1 |
table_create Diaries TABLE_NO_KEY |
| 2 |
column_create Diaries content COLUMN_SCALAR ShortText |
| 3 |
|
| 4 |
table_create Terms TABLE_PAT_KEY ShortText \ |
| 5 |
--default_tokenizer TokenBigram \ |
| 6 |
--normalizer NormalizerAuto |
| 7 |
column_create Terms diaries_content COLUMN_INDEX|WITH_POSITION Diaries content |
| 8 |
|
| 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 |
{"content": "It's *important*!"} |
| 18 |
] |
| 19 |
|
| 20 |
select \ |
| 21 |
--table Diaries \ |
| 22 |
--match_columns content \ |
| 23 |
--query "*" \ |
| 24 |
--output_columns content,_score \ |
| 25 |
--sortby _id |