Skip to content

Instantly share code, notes, and snippets.

@qrg
Created September 13, 2012 05:39
Show Gist options
  • Save qrg/3712115 to your computer and use it in GitHub Desktop.
Save qrg/3712115 to your computer and use it in GitHub Desktop.
> dump
table_create Site TABLE_HASH_KEY ShortText
column_create Site title COLUMN_SCALAR ShortText
table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenMecab
column_create Terms blog_title COLUMN_INDEX|WITH_POSITION Site title
load --table Site
[
["_key","title"],
["http://example.org/","This is test record 1!"],
["http://example.net/","test record 2."],
["http://example.com/","test test record three."],
["http://example.net/afr","test record four."],
["http://example.org/aba","test test test record five."],
["http://example.com/rab","test test test test record six."],
["http://example.net/atv","test test test record seven."],
["http://example.org/gat","test test record eight."],
["http://example.com/vdw","test test record nine."]
]
load --table Terms
[
["_key"],
["!"],
["."],
["1"],
["2"],
["eight"],
["five"],
["four"],
["i"],
["nine"],
["record"],
["s"],
["seven"],
["six"],
["test"],
["this"],
["three"]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment