On Feb 1, 2010, at 5:24 PM, tomPorter wrote:
I tried the search box on my app, and I am not sure what it is a: searching and b:returning when it matches a search.
You can tell Hobo to search any field (with set_search_columns), but the default is to search any field from Hobo::Model.SEARCH_COLUMNS_GUESS.
The actual search machinery is in find_by_search and site_search, called by the generated 'search' action in FrontController; the actual results are rendered by repeating the search-card tag, which by default just delegates to the card tag for every model.
I have a Book model with title, author and comments fields, and I am hard pressed to figure out which of these fields is being searched.
Don't forget to check the development log for things like this - sometimes, the SQL gets the quickest answer.
Any illumination? Any way to use acts_as_ferret to drive this search box?
Perhaps override the search action in FrontController? You may want to grab bits of the existing implementation of site_search in controller.rb.
--Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
