我正試圖在我的rails應用程序中使用Tire實現ElasticSearch。我做了一個非常基本的設置: country.rb
class Country < ActiveRecord::Base
attr_accessible :name
include Tire::Model::Search
include Tire::Model::Callbacks
en
我試圖索引一個模型,當我有一個has_many, :through關聯,但沒有結果顯示。 class Business < ActiveRecord::Base
include Tire::Model::Search
include Tire::Model::Callbacks
def self.search(params)
tire.search(loa