如何在ElasticSearch / Tire中处理嵌套_set关联?

时间:2013-02-21 14:02:45

标签: ruby-on-rails elasticsearch tire

我们正在努力将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中索引此类结构的最佳方法是什么?

0 个答案:

没有答案