title: Thinking Sphinx: search across multiple models: best practices?
body: <p>I want to add a jquery autocomplete with categories.
  The request will search across multiples models (Forum topics, news, users...) with Thinking Sphinx</p>
  
  <p>So in controller, I think it will look like that</p>
  
  <pre><code>def autocomplete
   @news = Actu.search(params[:term]).map {|g| {:label =&gt; g.title, :category =&gt; "Actualités", :id =&gt; g.id}}
   @topics = Topic.search(params[:term]).map {|g| {:label =&gt; g.title, :category =&gt; "Topics", :id =&gt; g.id}}
   @anotherModel = ...
  
   respond_to do |format|
     format.js { render :json =&gt; @news+@topics+@anotherModel }
   end
  end
  </code></pre>
  
  <p>That working, but what do you think about these practice ?</p>