8.1.8. groonga-suggest-learner

8.1.8.1. Summary

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.

8.1.8.2. Synopsis

groonga-suggest-learner [options] database_path

8.1.8.3. Usage

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.

8.1.8.3.1. Learning data from groonga-suggest-httpd

Execute groonga-suggest-learner.:

groonga-suggest-learner testdb/db

8.1.8.3.2. Learning data from log files

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

8.1.8.4. Options

-r

Specify endpoint for receiver.

-s

Specify endpoint for sender.

-d

Specify this option to daemonize.

-l

Specify log directory.

8.1.8.5. Parameters

There is one required parameter - database_path.

8.1.8.5.1. database_path

Specifies the path to a groonga database.