| 1 |
Execution example:: |
| 2 |
|
| 3 |
table_create Entries TABLE_HASH_KEY ShortText |
| 4 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 5 |
column_create Entries content COLUMN_SCALAR Text |
| 6 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 7 |
column_create Entries n_likes COLUMN_SCALAR UInt32 |
| 8 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 9 |
column_create Entries tag COLUMN_SCALAR ShortText |
| 10 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 11 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto |
| 12 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 13 |
column_create Terms entries_key_index COLUMN_INDEX|WITH_POSITION Entries _key |
| 14 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 15 |
column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content |
| 16 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 17 |
load --table Entries |
| 18 |
[ |
| 19 |
{"_key": "The first post!", |
| 20 |
"content": "Welcome! This is my first post!", |
| 21 |
"n_likes": 5, |
| 22 |
"tag": "Hello"}, |
| 23 |
{"_key": "Groonga", |
| 24 |
"content": "I started to use Groonga. It's very fast!", |
| 25 |
"n_likes": 10, |
| 26 |
"tag": "Groonga"}, |
| 27 |
{"_key": "Mroonga", |
| 28 |
"content": "I also started to use Mroonga. It's also very fast! Really fast!", |
| 29 |
"n_likes": 15, |
| 30 |
"tag": "Groonga"}, |
| 31 |
{"_key": "Good-bye Senna", |
| 32 |
"content": "I migrated all Senna system!", |
| 33 |
"n_likes": 3, |
| 34 |
"tag": "Senna"}, |
| 35 |
{"_key": "Good-bye Tritonn", |
| 36 |
"content": "I also migrated all Tritonn system!", |
| 37 |
"n_likes": 3, |
| 38 |
"tag": "Senna"} |
| 39 |
] |
| 40 |
# [[0,1337566253.89858,0.000355720520019531],5] |