Project

General

Profile

Actions

Feature #3936

closed

configurable list of models to include in search

Feature #3936: configurable list of models to include in search

Added by Luca Pireddu about 17 years ago. Updated almost 16 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Search engine
Target version:
Resolution:
Fixed

Description

It would be nice to be able to configure (and especially add to) the list of object types that the search engine considers. At present the list is hard-coded in the search controller

For an in-house customization I needed to include a new searchable model class into the search engine. To do this I had to override the SearchController#index method, but it would have been nices to be able to modify a configuration parameter to simply add a new model type to the @object_types array.


Related issues 2 (0 open — 2 closed)

Related to Redmine - Patch #4800: Ability to add search providers from pluginsClosedActions
Has duplicate Redmine - Feature #3021: Extend search with pluginsClosedActions

Updated by Jean-Philippe Lang almost 17 years ago Actions #1

  • Target version set to 1.0.0 (RC)

Updated by Alex Bevilacqua over 16 years ago Actions #2

Just out of curiosity, how would I use this change to add search functionality from a plugin?

Updated by Holger Winkelmann over 16 years ago Actions #3

will this also address search (fulltext) capabilities for the repositories ?

Updated by Eric Davis over 16 years ago Actions #4

  • Status changed from New to Closed
  • Resolution set to Fixed

It appears that this is complete.

Alex Bevilacqua wrote:

Just out of curiosity, how would I use this change to add search functionality from a plugin?

If you put this into your plugins' init.rb, this should add the Deliverable model:

Redmine::Search.map do |search|
  search.register :deliverables
end

Updated by Mischa The Evil almost 16 years ago Actions #5

More info about how to implement this in a plugin can be found on #3021 #note-4.

Actions

Also available in: PDF Atom