ES使用问题

来源:互联网 发布:2016月制造业pmi数据 编辑:程序博客网 时间:2024/06/05 06:12

ES写入成功马上可见(可能需要立即修改的场景)?

参考官方
特别提示:?refresh=wait_for

Leave this request open until a refresh has made the contents of
this request visible to search. This refresh policy is compatible with
high indexing and search throughput but it causes the request to wait
to reply until a refresh occurs.

?refresh=true不建议生产环境使用

Force a refresh as part of this request. This refresh policy does not
scale for high indexing or search throughput but is useful to present
a consistent view to for indices with very low traffic. And it is
wonderful for tests!

0 0