How do you index attachment in Elasticsearch with Tire?
问题 Having difficulty indexing an attachment type in elasticsearch via the Tire gem. Not able to set attachment type correctly. I've taken ActiveModel Integration example referenced from the Tire gem and added a field, filename , to reference name of PDFs on local filesystem that I want to index with the record. #app/models/article.rb class Article < ActiveRecord::Base include Tire::Model::Search include Tire::Model::Callbacks attr_accessible :title, :content, :published_on, :filename mapping do