Registering our plugin
The first step to setting up our plugin to be incorporated into Redmine's internal search is to register our model.
This is done in our plugin's init.rb
file anywhere outside the Redmine::Plugin.register
block, using the following code:
Redmine::Search.available_search_types << 'kb_articles'
Redmine is now aware of our plugin's model and will be looking for it whenever a project or global search is requested.