hits里的total是数量,数量为0,hits正常是不会有数据的
hits中是有数据的,可以取出来,但是totalHits一直是0,所以很奇怪
@yzwang: {"took":5,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max_score":null,"hits":[]}} 是"{total":0,"max_score":null,"hits":[]}}这里面的total为0么
@风行天下12: 是的,这种restful方式的结果对应到java api,就是totalHits
@yzwang: 那就不知道具体原因了,没遇到过这种情况