| 1 |
.. -*- rst -*- |
| 2 |
|
| 3 |
.. program:: groonga-suggest-learner |
| 4 |
|
| 5 |
groonga-suggest-learner |
| 6 |
======================= |
| 7 |
|
| 8 |
Summary |
| 9 |
------- |
| 10 |
|
| 11 |
groonga-suggest-learner is a program to learn suggest result from data which derived from groonga-suggest-httpd. |
| 12 |
Usually, it is used with groonga-suggest-httpd, but It is allowed to launch standalone. |
| 13 |
In such a case, groonga-suggest-learner loads data from log directory. |
| 14 |
|
| 15 |
Synopsis |
| 16 |
-------- |
| 17 |
|
| 18 |
:: |
| 19 |
|
| 20 |
groonga-suggest-learner [options] database_path |
| 21 |
|
| 22 |
Usage |
| 23 |
----- |
| 24 |
|
| 25 |
groonga-suggest-leaner supports the two way of learning data. |
| 26 |
One is learning data from groonga-suggest-httpd, the other is |
| 27 |
learning data from already existing log files. |
| 28 |
|
| 29 |
Learning data from groonga-suggest-httpd |
| 30 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 31 |
|
| 32 |
Execute groonga-suggest-learner.:: |
| 33 |
|
| 34 |
groonga-suggest-learner testdb/db |
| 35 |
|
| 36 |
Learning data from log files |
| 37 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 38 |
|
| 39 |
Execute groonga-suggest-learner with ``-l`` option. |
| 40 |
|
| 41 |
Here is the sample to load log data under ``logs`` directory:: |
| 42 |
|
| 43 |
groonga-suggest-learner -l logs testdb/db |
| 44 |
|
| 45 |
Options |
| 46 |
------- |
| 47 |
|
| 48 |
.. option:: -r <endpoint>, --receive-endpoint <endpoint> |
| 49 |
|
| 50 |
Uses ``<endpoint>`` as the receiver endpoint. |
| 51 |
|
| 52 |
.. option:: -s <endpoint>, --send-endpoint <endpoint> |
| 53 |
|
| 54 |
Uses ``<endpoint>`` as the sender endpoint. |
| 55 |
|
| 56 |
.. option:: -d, --daemon |
| 57 |
|
| 58 |
Runs as a daemon. |
| 59 |
|
| 60 |
.. option:: -l <directory>, --log-base-path <directory> |
| 61 |
|
| 62 |
Reads logs from ``<directory>``. |
| 63 |
|
| 64 |
.. option:: --log-path <path> |
| 65 |
|
| 66 |
Outputs log to ``<path>``. |
| 67 |
|
| 68 |
.. option:: --log-level <level> |
| 69 |
|
| 70 |
Uses ``<level>`` for log level. ``<level>`` must be between 1 and 9. |
| 71 |
Larger level outputs more logs. |
| 72 |
|
| 73 |
Parameters |
| 74 |
---------- |
| 75 |
|
| 76 |
There is only one required parameter. |
| 77 |
|
| 78 |
``database_path`` |
| 79 |
^^^^^^^^^^^^^^^^^ |
| 80 |
|
| 81 |
Specifies the path to a groonga database. |
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
Related tables |
| 86 |
-------------- |
| 87 |
|
| 88 |
Here is the list of table which learned data is stored. If you specify ``query`` as dataset name, following ``_DATASET`` suffix are replaced. Thus, ``event_query`` table is used. |
| 89 |
|
| 90 |
* event_DATASET |
| 91 |
|
| 92 |
|