| 1 |
Execution example:: |
| 2 |
|
| 3 |
table_create Entries TABLE_HASH_KEY ShortText |
| 4 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 5 |
column_create Entries title COLUMN_SCALAR ShortText |
| 6 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 7 |
column_create Entries body COLUMN_SCALAR ShortText |
| 8 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 9 |
load --table Entries |
| 10 |
[ |
| 11 |
{"_key": "http://example.com/entry1", "title":"Hello Groonga.", "body":"This is my first entry."}, |
| 12 |
{"_key": "http://example.com/entry2", "title":"Hello world.", "body":"I love Groonga!"}, |
| 13 |
{"_key": "http://example.com/entry3", "title":"Hello Mroonga, bye Groonga.", "body":"I use Mroonga."}, |
| 14 |
{"_key": "http://example.com/entry4", "title":"Say, Hello Groonga!", "body":"I'm back."} |
| 15 |
] |
| 16 |
# [[0,1337566253.89858,0.000355720520019531],4] |
| 17 |
table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto |
| 18 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 19 |
column_create Terms entries_title COLUMN_INDEX|WITH_POSITION Entries title |
| 20 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 21 |
column_create Terms entries_body COLUMN_INDEX|WITH_POSITION Entries body |
| 22 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 23 |
column_create Terms entries_whole COLUMN_INDEX|WITH_POSITION|WITH_SECTION Entries title,body |
| 24 |
# [[0,1337566253.89858,0.000355720520019531],true] |