So I have two separate queries:
tagged_items = Item.tagged_with(params[:s], :on => :tags)
searched_items = Item.find(:all, :conditions => ["MATCH(title) AGAINST (? IN BOOLEAN MODE)", "*#{params[:s]}*"])
The first tagged_items
is using the acts_as_taggable_on
plugin to find all the items tagged with XYZ.
The second, searched_items
, is used to search the items
table for the search term.
So, how could I combine (and avoid duplicates) the results of these two?