Sha256: cfa8a5c2523b5ead728d566c5dd55371fbffb3733422fde6fa9301ed10af8954
Contents?: true
Size: 1.51 KB
Versions: 52
Compression:
Stored size: 1.51 KB
Contents
.. -*- rst -*- .. highlightlang:: none .. groonga-command .. database: commands_register ``register`` ============ .. deprecated:: 5.0.1 Use :doc:`plugin_register` instead. 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 be removed since Groonga 5.0.1. Use :doc:`plugin_unregister` in such a case. Syntax ------ This command takes only one 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``. See also -------- * :doc:`plugin_register` * :doc:`plugin_unregister`
Version data entries
52 entries across 26 versions & 1 rubygems