| 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 memo_content COLUMN_INDEX|WITH_POSITION Memos content |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Memos |
| 10 |
[ |
| 11 |
{"content": "Today is sunny day."}, |
| 12 |
{"content": "Today is rainy day."} |
| 13 |
] |
| 14 |
[[0,0.0,0.0],2] |
| 15 |
select Memos --query 'content:@sunny' |
| 16 |
[ |
| 17 |
[ |
| 18 |
0, |
| 19 |
0.0, |
| 20 |
0.0 |
| 21 |
], |
| 22 |
[ |
| 23 |
[ |
| 24 |
[ |
| 25 |
1 |
| 26 |
], |
| 27 |
[ |
| 28 |
[ |
| 29 |
"_id", |
| 30 |
"UInt32" |
| 31 |
], |
| 32 |
[ |
| 33 |
"content", |
| 34 |
"Text" |
| 35 |
] |
| 36 |
], |
| 37 |
[ |
| 38 |
1, |
| 39 |
"Today is sunny day." |
| 40 |
] |
| 41 |
] |
| 42 |
] |
| 43 |
] |
| 44 |
delete Terms --filter '_key == "sunny"' |
| 45 |
[[0,0.0,0.0],true] |
| 46 |
select Terms --output_columns _key |
| 47 |
[ |
| 48 |
[ |
| 49 |
0, |
| 50 |
0.0, |
| 51 |
0.0 |
| 52 |
], |
| 53 |
[ |
| 54 |
[ |
| 55 |
[ |
| 56 |
5 |
| 57 |
], |
| 58 |
[ |
| 59 |
[ |
| 60 |
"_key", |
| 61 |
"ShortText" |
| 62 |
] |
| 63 |
], |
| 64 |
[ |
| 65 |
"." |
| 66 |
], |
| 67 |
[ |
| 68 |
"day" |
| 69 |
], |
| 70 |
[ |
| 71 |
"is" |
| 72 |
], |
| 73 |
[ |
| 74 |
"rainy" |
| 75 |
], |
| 76 |
[ |
| 77 |
"today" |
| 78 |
] |
| 79 |
] |
| 80 |
] |
| 81 |
] |
| 82 |
select Memos --query 'content:@sunny' |
| 83 |
[[0,0.0,0.0],[[[0],[["_id","UInt32"],["content","Text"]]]]] |
| 84 |
select Memos |
| 85 |
[ |
| 86 |
[ |
| 87 |
0, |
| 88 |
0.0, |
| 89 |
0.0 |
| 90 |
], |
| 91 |
[ |
| 92 |
[ |
| 93 |
[ |
| 94 |
2 |
| 95 |
], |
| 96 |
[ |
| 97 |
[ |
| 98 |
"_id", |
| 99 |
"UInt32" |
| 100 |
], |
| 101 |
[ |
| 102 |
"content", |
| 103 |
"Text" |
| 104 |
] |
| 105 |
], |
| 106 |
[ |
| 107 |
1, |
| 108 |
"Today is sunny day." |
| 109 |
], |
| 110 |
[ |
| 111 |
2, |
| 112 |
"Today is rainy day." |
| 113 |
] |
| 114 |
] |
| 115 |
] |
| 116 |
] |