| 1 |
Execution example:: |
| 2 |
|
| 3 |
table_create Entries_20150708 TABLE_HASH_KEY ShortText |
| 4 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 5 |
column_create Entries_20150708 created_at COLUMN_SCALAR Time |
| 6 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 7 |
column_create Entries_20150708 content COLUMN_SCALAR Text |
| 8 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 9 |
column_create Entries_20150708 n_likes COLUMN_SCALAR UInt32 |
| 10 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 11 |
column_create Entries_20150708 tag COLUMN_SCALAR ShortText |
| 12 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 13 |
table_create Entries_20150709 TABLE_HASH_KEY ShortText |
| 14 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 15 |
column_create Entries_20150709 created_at COLUMN_SCALAR Time |
| 16 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 17 |
column_create Entries_20150709 content COLUMN_SCALAR Text |
| 18 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 19 |
column_create Entries_20150709 n_likes COLUMN_SCALAR UInt32 |
| 20 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 21 |
column_create Entries_20150709 tag COLUMN_SCALAR ShortText |
| 22 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 23 |
table_create Terms TABLE_PAT_KEY ShortText \ |
| 24 |
--default_tokenizer TokenBigram \ |
| 25 |
--normalizer NormalizerAuto |
| 26 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 27 |
column_create Terms entries_key_index_20150708 \ |
| 28 |
COLUMN_INDEX|WITH_POSITION Entries_20150708 _key |
| 29 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 30 |
column_create Terms entries_content_index_20150708 \ |
| 31 |
COLUMN_INDEX|WITH_POSITION Entries_20150708 content |
| 32 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 33 |
column_create Terms entries_key_index_20150709 \ |
| 34 |
COLUMN_INDEX|WITH_POSITION Entries_20150709 _key |
| 35 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 36 |
column_create Terms entries_content_index_20150709 \ |
| 37 |
COLUMN_INDEX|WITH_POSITION Entries_20150709 content |
| 38 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 39 |
load --table Entries_20150708 |
| 40 |
[ |
| 41 |
{"_key": "The first post!", |
| 42 |
"created_at": "2015/07/08 00:00:00", |
| 43 |
"content": "Welcome! This is my first post!", |
| 44 |
"n_likes": 5, |
| 45 |
"tag": "Hello"}, |
| 46 |
{"_key": "Groonga", |
| 47 |
"created_at": "2015/07/08 01:00:00", |
| 48 |
"content": "I started to use Groonga. It's very fast!", |
| 49 |
"n_likes": 10, |
| 50 |
"tag": "Groonga"}, |
| 51 |
{"_key": "Mroonga", |
| 52 |
"created_at": "2015/07/08 02:00:00", |
| 53 |
"content": "I also started to use Mroonga. It's also very fast! Really fast!", |
| 54 |
"n_likes": 15, |
| 55 |
"tag": "Groonga"} |
| 56 |
] |
| 57 |
# [[0,1337566253.89858,0.000355720520019531],3] |
| 58 |
load --table Entries_20150709 |
| 59 |
[ |
| 60 |
{"_key": "Good-bye Senna", |
| 61 |
"created_at": "2015/07/09 00:00:00", |
| 62 |
"content": "I migrated all Senna system!", |
| 63 |
"n_likes": 3, |
| 64 |
"tag": "Senna"}, |
| 65 |
{"_key": "Good-bye Tritonn", |
| 66 |
"created_at": "2015/07/09 01:00:00", |
| 67 |
"content": "I also migrated all Tritonn system!", |
| 68 |
"n_likes": 3, |
| 69 |
"tag": "Senna"} |
| 70 |
] |
| 71 |
# [[0,1337566253.89858,0.000355720520019531],2] |