Closed
Description
It would be great if we could override the default search mechanic, to allow for a customized search on a per model bases. For example, one way to do this would be to have a config setting such as
config.model Cars do
search_method :search
end
or globally for all models
RailsAdmin.search_with_method :search
This would mean in the case of the Car model, searches would be performed by calling:
Car.search query, offset, limit
dynamically in preference to the default search. This would of course return a list of Car models which would be understood by rails admin and rendered in the search results.
This would be a very powerful feature as it would allow users to customize searches and potentially use search indexers such as Sphinx/Solr etc.. to perform the actual search in the background.
I would like to hear other any other comments/suggestions ?