我们正在努力将ElasticSearch集成到我们的RoR3应用程序中,并决定使用Tire gem。
我们仍在学习如何使用这个神奇的宝石,但无法找到如何执行以下操作的教程:
A Project has many Locations.
A Location is a nested set with n levels:
- Canada
- List item
- Quebec
- Montreal
- Quebec City
- Ontario
- ...
- US
- each of the 51 states
- main cities in each of the different states
- List item
在ElasticSearch中索引此类结构的最佳方法是什么?