File: groonga-suggest-learner.rst

package info (click to toggle)
groonga 15.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 163,080 kB
  • sloc: ansic: 770,564; cpp: 48,925; ruby: 40,447; javascript: 10,250; yacc: 7,045; sh: 5,602; python: 2,821; makefile: 1,672
file content (92 lines) | stat: -rw-r--r-- 1,975 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
.. -*- rst -*-

.. program:: groonga-suggest-learner

groonga-suggest-learner
=======================

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.

Synopsis
--------

::

  groonga-suggest-learner [options] database_path

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.

Learning data from groonga-suggest-httpd
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Execute groonga-suggest-learner.::

  groonga-suggest-learner testdb/db

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

Options
-------

.. option:: -r <endpoint>, --receive-endpoint <endpoint>

   Uses ``<endpoint>`` as the receiver endpoint.

.. option:: -s <endpoint>, --send-endpoint <endpoint>

   Uses ``<endpoint>`` as the sender endpoint.

.. option:: -d, --daemon

   Runs as a daemon.

.. option:: -l <directory>, --log-base-path <directory>

   Reads logs from ``<directory>``.

.. option:: --log-path <path>

   Outputs log to ``<path>``.

.. option:: --log-level <level>

   Uses ``<level>`` for log level. ``<level>`` must be between 1 and 9.
   Larger level outputs more logs.

Parameters
----------

There is only one required parameter.

``database_path``
^^^^^^^^^^^^^^^^^

Specifies the path to a groonga database.



Related tables
--------------

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.

* event_DATASET