Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
就像带有相关文章部分的博客一样,如何通过邻近度查找与另一个文档相关的文档。
对于我用 Ruby 编写的应用程序,我使用 Tire 客户端与 elasticsearch 进行通信。
我相信您正在寻找“更像这样”的查询 - 这是 ES API 文档:http ://www.elasticsearch.org/guide/reference/api/more-like-this/ 。
我认为这会tire公开此 API 端点或允许您手动执行此操作 - 事实上,它看起来就像tire-contrib给了您想要的东西:https ://github.com/karmi/tire-contrib/ 。
tire
tire-contrib