ES版本7.1.1,本人想查src的top5,但是返回的值明显不对
这两条对比就能发现明显不对。
curl -XPOST "192.168.0.108:9200/_sql?format=txt&pretty" -H 'Content-type: application/json' -d'
{
"query": "select src,count(1) c from bigeyedata group by src having c < 10000 order by c desc limit 5"
}'
curl -XPOST "192.168.0.108:9200/_sql?format=txt&pretty" -H 'Content-type: application/json' -d'
{
"query": "select src,count(1) c from bigeyedata group by src having c < 10000 and c > 10 order by c desc limit 5"
}'
这两条对比就能发现明显不对。
6 个回复
xizechuan - 沉迷学习,无法自拔
赞同来自:
libeep
赞同来自:
tacsklet - 公司有用到es
赞同来自:
viewsite
赞同来自:
gxHu - 90
赞同来自:
gxHu - 90
赞同来自:
应该是这吧