Skip to content

Instantly share code, notes, and snippets.

@myokoym
Last active December 3, 2015 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save myokoym/7da68ca62b927bef6422 to your computer and use it in GitHub Desktop.
Save myokoym/7da68ca62b927bef6422 to your computer and use it in GitHub Desktop.
GroongaのUTF-8なDBに対してShift_JIS(cmd.exe)で全文検索する3つの方法 ref: http://qiita.com/myokoym/items/c7ea4c83dad080d8ebbe
> groonga -n --encoding sjis test.db
gem install grnlip
> grnlip \path\to\groonga.exe \path\to\db utf-8
% grnlip groonga ~/.feedcellar/db/feedcellar.db
groonga(feedcellar.db)> status
[[0,1449073618.25274,0.00140500068664551],{"alloc_count":200,"starttime":1449073618,"start_time":1449073618,"uptime":0,"version":"5.1.0","n_queries":0,"cache_hit_rate":0.0,"command_version":1,"default_command_version":1,"max_command_version":2}]
groonga(feedcellar.db)> pp status
[
[
0,
1449073621.71188,
9.48905944824219e-05
],
{
"alloc_count": 200,
"starttime": 1449073621,
"start_time": 1449073621,
"uptime": 0,
"version": "5.1.0",
"n_queries": 0,
"cache_hit_rate": 0.0,
"command_version": 1,
"default_command_version": 1,
"max_command_version": 2
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment