Last active
December 3, 2015 14:34
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> groonga -n --encoding sjis test.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install grnlip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> grnlip \path\to\groonga.exe \path\to\db utf-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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