groonga-suggest-learner is a program to learn suggest result from data which derived from groonga-suggest-httpd. Usually, it is used with groonga-suggest-httpd, but It is allowed to launch standalone. In such a case, groonga-suggest-learner loads data from log directory.
groonga-suggest-learner [options] database_path
groonga-suggest-leaner supports the two way of learning data. One is learning data from groonga-suggest-httpd, the other is learning data from already existing log files.
Execute groonga-suggest-learner.:
groonga-suggest-learner testdb/db
Execute groonga-suggest-learner with -l option.
Here is the sample to load log data under logs directory:
groonga-suggest-learner -l logs testdb/db
Uses <endpoint> as the receiver endpoint.
Uses <endpoint> as the sender endpoint.
Runs as a daemon.
Reads logs from <directory>.
Outputs log to <path>.
Uses <level> for log level. <level> must be between 1 and 9. Larger level outputs more logs.