你不会是程序猿吧?

ClearIndicesCacheRequest 对查询结果的影响

Elasticsearch | 作者 a593710710 | 发布于2020年04月20日 | 阅读数:1236

因为之前查询经常遇到circuit breaking exception,所以在创建Rest client的时候执行了一次ClearIndicesCacheRequest,但是会导致查询结果不一致,请问是什么原因?
比如执行ClearIndicesCacheRequest后,我用CountRequest返回6000+,但是SearchRequest只有40+的数据。
不执行ClearIndicesCacheRequest,CountRequest只有30+,SearchRequest能返回6000+hits(Count显然也是不对的)。是什么造成了这种情况?

 
已邀请:

要回复问题请先登录注册