Feature #3936
configurable list of models to include in search
| Status: | Closed | Start date: | 2009-09-28 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Search engine | |||
| Target version: | 1.0.0 (RC) | |||
| 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
Associated revisions
Makes search providers extensible (#3936).
History
Updated by Jean-Philippe Lang almost 2 years ago
- Target version set to 1.0.0 (RC)
Updated by Alex Bevilacqua almost 2 years ago
Just out of curiosity, how would I use this change to add search functionality from a plugin?
Updated by Holger Winkelmann almost 2 years ago
will this also address search (fulltext) capabilities for the repositories ?
Updated by Eric Davis over 1 year ago
- 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:
1Redmine::Search.map do |search|
2 search.register :deliverables
3end