ES使用问题

版权声明:RML 版权所有 https://blog.csdn.net/slml08/article/details/71429570

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!

猜你喜欢

转载自blog.csdn.net/slml08/article/details/71429570