在弹性搜索中按字段模拟字段折叠/分组 [英] Simulating field collapsing/grouping by field in Elastic Search

查看:118
本文介绍了在弹性搜索中按字段模拟字段折叠/分组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

弹性搜索当前(截至0.18.4)支持字段折叠。有没有一个很好的方法来模拟这个,以避免 N 搜索查询?

Elastic Search does not currently (as of 0.18.4) support field collapsing. Is there a good way to simulate this, as to avoid N search queries?

推荐答案

可能不是你正在寻找的答案,但是据我所知,根据这个票,唯一真正的解决方法是在客户端选择较大的结果集和组。

Probably not the answer you're looking for but: As far as I know, and according to this ticket, the only real workaround is to select a larger result set and group on the client side.

这篇关于在弹性搜索中按字段模拟字段折叠/分组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆