0
Elasticsearch,輪胎和嵌套領域請仔細閱讀本回答了類似的問題,我有以下Elasticsearch, Tire, and Nested queries/associations with ActiveRecord用ActiveRecord
可以說,我加入中的以下上面的問題提供了Book模型:
field :account_tags, type: Array # [{:account_id => 1, :tags => ["tag1", "tag2"], :acccount_id => 2, :tags => ["tag3", "tag4"] }]
我現在想設置一個索引來搜索這些account_id或tags。
我該怎麼做?