Although, if you have your define_index block before your custom search method in the model, then it will overwrite TS's search method. And then, you could create your own ts_search method:
def ts_search(*args)
ThinkingSphinx::Search.new *search_options(args)
end
I've not tried this myself, but in theory it should work. Not sure if there's issues deeper within Thinking Sphinx where it expects Model.search to be there as per normal, though.
Cheers
--
Pat
> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
>
As an alternative work-around, why not fork TS and use your version in your Gemfile? That way you can change all the search methods to be ts_search, and saves you rewriting the bulk of your site?
--
Pat