我在本地机器上有弹性搜索刷新问题。我使用 Spring data JPA,当我保存文档时出现异常:
Error during managed flush [Cannot execute jest action , response code : 400 , error : {"root_cause":[{"type":"illegal_argument_exception","reason":"request [/videostatistics/_refresh] contains unrecognized parameter: [refresh]"}],"type":"illegal_argument_exception","reason":"request [/videostatistics/_refresh] contains unrecognized parameter: [refresh]"} , message : null]
本地和远程版本相同:5.1.2
url 格式如下所示:http://localhost:9200/videostatistics/_refresh?refresh=true