title: Thinking Sphinx and acts_as_taggable_on plugin
body: <p>I installed Sphinx and Thinking Sphinx for ruby on rails 2.3.2.</p>
  
  <p>When I search without conditions search works ok. Now, what I'd like to do is filter by tags, so, as I'm using the acts_as_taggable_on plugin, my Announcement model looks like this:</p>
  
  <pre><code>class Announcement &lt; ActiveRecord::Base
  
    acts_as_taggable_on :tags,:category
  
    define_index do
      indexes title, :as =&gt; :title, :sortable =&gt; true
      indexes description, :as =&gt; :description, :sortable =&gt; true
      indexes tags.name, :as =&gt; :tags
      indexes category.name, :as =&gt; :category
  
      has category(:id), :as =&gt; :category_ids
      has tags(:id), :as =&gt; :tag_ids
    end
  </code></pre>
  
  <p>For some reason, when I run the following command, it will bring just one announcement, that has nothing to do with what I expect. I've got many announcements, so I expected a lot of results instead.</p>
  
  <p><code>Announcement.search params[:announcement][:search].to_s, :with =&gt; {:tag_ids =&gt; 1}, :page =&gt; params[:page], :per_page =&gt; 10</code></p>
  
  <p>I guess something is wrong, and it's not searching correctly.</p>
  
  <p>Can anyone give my a clue of what's going on?</p>
  
  <p>Thanks,
  Brian</p>