| 1 |
Execution example:: |
| 2 |
|
| 3 |
table_create --name Blog1 --flags TABLE_HASH_KEY --key_type ShortText |
| 4 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 5 |
column_create --table Blog1 --name title --flags COLUMN_SCALAR --type ShortText |
| 6 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 7 |
column_create --table Blog1 --name message --flags COLUMN_SCALAR --type ShortText |
| 8 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 9 |
table_create --name IndexBlog1 --flags TABLE_PAT_KEY --key_type ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto |
| 10 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 11 |
column_create --table IndexBlog1 --name index_title --flags COLUMN_INDEX|WITH_POSITION --type Blog1 --source title |
| 12 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 13 |
column_create --table IndexBlog1 --name index_message --flags COLUMN_INDEX|WITH_POSITION --type Blog1 --source message |
| 14 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 15 |
load --table Blog1 |
| 16 |
[ |
| 17 |
{"_key":"grn1","title":"Groonga test","message":"Groonga message"}, |
| 18 |
{"_key":"grn2","title":"baseball result","message":"rakutan eggs 4 - 4 Groonga moritars"}, |
| 19 |
{"_key":"grn3","title":"Groonga message","message":"none"} |
| 20 |
] |
| 21 |
# [[0,1337566253.89858,0.000355720520019531],3] |