CREATE PLUGIN plugin_name TYPE 'plugin_type' SONAME 'plugin_library'
Loads the given library (if it is not loaded yet) and loads the specified plugin from it. The known plugin types are:
ranker
index_token_filter
query_token_filter
Refer to plugins for more information regarding writing the plugins.
> CREATE PLUGIN myranker TYPE 'ranker' SONAME 'myplugins.so';
mysqlQuery OK, 0 rows affected (0.00 sec)
With Buddy plugins, you can enhance Manticore Search’s capabilities and accommodate certain queries that Manticore doesn’t support natively. We strongly recommend reading this article to learn the basics of working with plugins.
CREATE PLUGIN <username/package name on https://packagist.org/> TYPE 'buddy' VERSION <package version>
There is also an alias that is created specifically for use with Buddy and is easier to remember.
CREATE BUDDY PLUGIN <username/package name on https://packagist.org/> VERSION <package version>
This will install the show-hostname
plugin to plugin_dir and will enable it without the need to restart the server.
CREATE PLUGIN manticoresoftware/buddy-plugin-show-hostname TYPE 'buddy' VERSION 'dev-main';
CREATE BUDDY PLUGIN manticoresoftware/buddy-plugin-show-hostname VERSION 'dev-main';