I've already installed the grails searchable plugin which is working fine. I would like to change its behaviour in order to have something like google's "I'am feeling lucky".
I copied the
myapp/plugins/searchable-x.x/grails-app/views/searchable/index.gsp
to
/myapp/grails-app/views/searchable/index.gsp
At this file there is a result set called "results". The default behaviour is to create a list of links to the domain objects which fulfils the search.
I want to take the first element of this set (this is not a problem) and make a redirect to the page of this first object. Is this the correct place? If yes then the question is how to do this. If not, then should I try this at the controller?
Thanks!