MantisBT - v1.1 Release (Closed)
View Issue Details
0000179v1.1 Release (Closed)[All Projects] Generalpublic2009-06-07 21:222009-09-09 22:43
Assigned Topedroa 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version1.1 
Summary0000179: Create a hook_search
DescriptionBuild out the hook_search system to replace the "searchobjects" structure within the Smartsearch.

The resulting hook_search on each of the objects will assist in the planned search-suggestion on the dropdown/lookup pages.
TagsNo tags attached.
Attached Files

2009-07-20 15:35   
(Last edited: 2009-08-27 23:01)
I'd like some feedback on this item. At present, all the search objects are included in the SmartSearch module. Although this does work fine, it creates a dependency whenever a new module is added.

Someone needs to know to:
a) create the proper search object and
b) place it within the SmartSearch module properly.

Given how modules are currently installed, this is annoying at minimum and problematic and convoluted at worst.

I *think* this could be implemented similar to the hook_calendar and hook_cron where each object defines how it should be searched... and they're all tied together through a "Searchable" interface that any class can implement.


2009-08-28 00:15   
Implemented the first version of this one. Added to the smartsearch to use module-based hook_search methods if they exist.

Each module can now implement its own *basic* search without modifying any core module. Advanced search still has to be implemented.
2009-08-30 16:03   
Converted the Projects class to use the new hook_search as a public proof of concept in r593;

Implemented this as a demo for an internal modules... other AddOn modules can do the same;

Issue History
2009-06-07 21:22caseydkNew Issue
2009-07-09 03:43caseydkStatusnew => assigned
2009-07-09 03:43caseydkAssigned To => caseydk
2009-07-20 15:35caseydkNote Added: 0000345
2009-07-20 15:35caseydkAssigned Tocaseydk => pedroa
2009-07-20 15:35caseydkStatusassigned => feedback
2009-08-03 04:08caseydkProjectv1.1 Release (Closed) => Pending Requests
2009-08-27 23:01caseydkNote Edited: 0000345
2009-08-28 00:08caseydkProjectPending Requests => v1.1 Release (Closed)
2009-08-28 00:15caseydkNote Added: 0000401
2009-08-30 16:03caseydkStatusfeedback => resolved
2009-08-30 16:03caseydkResolutionopen => fixed
2009-08-30 16:03caseydkNote Added: 0000402
2009-09-09 22:43caseydkStatusresolved => closed
2009-09-09 22:43caseydkFixed in Version => 1.1