Sha256: a31920515071478d72c3500a984a77ff765c1c757d58b17dd2a361d9114f9c33

Contents?: true

Size: 1.34 KB

Versions: 64

Compression:

Stored size: 1.34 KB

Contents

.. -*- rst -*-

.. highlightlang:: none

.. groonga-command
.. database: commands_register

register
========

Summary
-------

``register`` command registers a plugin. You need to register a plugin
before you use a plugin.

You need just one ``register`` command for a plugin in the same
database because registered plugin information is written into the
database.  When you restart your ``groonga`` process, ``groonga``
process loads all registered plugins without ``register`` command.

.. note::

   Registered plugins can't be removed for now.

Syntax
------

``register`` has a parameter ``path``. It is required parameter::

  register path

Usage
-----

Here is a sample that registers ``QueryExpanderTSV`` query expander
that is included in
``${PREFIX}/lib/groonga/plugins/query_expanders/tsv.so``.

.. groonga-command
.. include:: ../../example/reference/commands/register/query_expanders_tsv.log
.. register query_expanders/tsv

You can omit ``${PREFIX}/lib/groonga/plugins/`` and suffix (``.so``).
They are completed automatically.

You can specify absolute path such as ``register
/usr/lib/groonga/plugins/query_expanders/tsv.so``.

Return value
------------

``register`` returns ``true`` as body on success such as::

  [HEADER, true]

If ``register`` fails, error details are in ``HEADER``.

See :doc:`/reference/command/output_format` for ``HEADER``.

Version data entries

64 entries across 30 versions & 1 rubygems

Version Path
rroonga-4.0.3-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt
rroonga-4.0.3-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt
rroonga-4.0.3-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt
rroonga-4.0.3-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt
rroonga-4.0.2-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt
rroonga-4.0.2-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt
rroonga-4.0.2-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt
rroonga-4.0.2-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt
rroonga-4.0.1-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt
rroonga-4.0.1-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt
rroonga-4.0.1-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt
rroonga-4.0.1-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt
rroonga-4.0.0-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt
rroonga-4.0.0-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt
rroonga-4.0.0-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt
rroonga-4.0.0-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt
rroonga-3.1.2-x64-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt
rroonga-3.1.2-x64-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt
rroonga-3.1.2-x86-mingw32 vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt
rroonga-3.1.2-x86-mingw32 vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt