ElasticSearch & Tire: Using Mapping and to_indexed_json
问题 While reading the Tire doc, I was under the impression that you should use either mapping or to_indexed_json methods, since (my understanding was..) the mapping is used to feed the to_indexed_json . The problem is, that I found some tutorials where both are used. WHY? Basically, my app works right now with the to_indexed_json but I can't figure out how to set the boost value of some of the attributes (hence the reason I started looking at mapping) and I was wondering if using both would