definiuje news_index.rb
ThinkingSphinx::Index.define :news, :with => :active_record do
indexes translations.title, :sortable => true
indexes translations.conten
has created_at, updated_at
has translations.published, :as => :published, :type => :integer, :facet => true
set_property :delta => :delayed
end
mam atrybut published (boolean), ktory okresla czy dla danego jezyka tlumaczenie newsa juz jest zakonczone i moze zostac opublikowane.
niestety konstrukacja:
News.search params[:query], :with => {:published => 1}, :page => params[:page], :per_page => 20, :order => ‘created_at desc’
nie dziala zgodnie z oczekiwaniami. problem jest z atrybutem publish, ktory tak jakby nie jest uwzgledniany.