[Groonga-commit] groonga/groonga at f94027b [master] doc: add plugin_register document

Back to archive index

HAYASHI Kentaro null+****@clear*****
Fri Mar 27 10:49:38 JST 2015


HAYASHI Kentaro	2015-03-27 10:49:38 +0900 (Fri, 27 Mar 2015)

  New Revision: f94027b3f081ce2374547e94513db1ad658f1b33
  https://github.com/groonga/groonga/commit/f94027b3f081ce2374547e94513db1ad658f1b33

  Message:
    doc: add plugin_register document

  Added files:
    doc/source/reference/commands/plugin_register.rst

  Added: doc/source/reference/commands/plugin_register.rst (+57 -0) 100644
===================================================================
--- /dev/null
+++ doc/source/reference/commands/plugin_register.rst    2015-03-27 10:49:38 +0900 (fd47da2)
@@ -0,0 +1,57 @@
+.. -*- rst -*-
+
+.. highlightlang:: none
+
+.. groonga-command
+.. database: commands_plugin_register
+
+``plugin_register``
+===================
+
+.. versionadded:: 5.0.1
+
+Summary
+-------
+
+``plugin_register`` command registers a plugin. You need to register a plugin
+before you use a plugin.
+
+You need just one ``plugin_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 ``plugin_register`` command.
+
+Syntax
+------
+
+``plugin_register`` has a parameter ``path``. It is required parameter::
+
+  plugin_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/plugin_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 ``plugin_register
+/usr/lib/groonga/plugins/query_expanders/tsv.so``.
+
+Return value
+------------
+
+``plugin_register`` returns ``true`` as body on success such as::
+
+  [HEADER, true]
+
+If ``plugin_register`` fails, error details are in ``HEADER``.
+
+See :doc:`/reference/command/output_format` for ``HEADER``.
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index