【问题标题】:Elastichsearch: request [/someindex/_refresh] contains unrecognized parameter: [refresh]Elasticsearch:请求 [/some index/_refresh] 包含无法识别的参数:[refresh]
【发布时间】:2021-01-05 07:51:26
【问题描述】:

我在本地机器上遇到了弹性搜索刷新问题。我使用 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

【问题讨论】:

    标签: elasticsearch spring-data-jpa elasticsearch-jest


    【解决方案1】:

    我通过安装 2.4.5 版解决了问题。 但我仍然困惑为什么 5.1.2 版在 searchly.com 上远程工作

    如果有什么建议请提供。

    【讨论】:

      【解决方案2】:

      客户端似乎发送了一个 Elasticsearch 不支持的参数。在 Elasticsearch 5.x 中添加未使用的参数会导致异常,而在 2.4 中并非如此。

      要解决此问题,您的客户端不应在刷新时发送该参数。

      【讨论】:

        猜你喜欢
        • 2017-07-07
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2022-01-02
        • 1970-01-01
        • 1970-01-01
        • 2023-01-12
        • 2013-02-19
        相关资源
        最近更新 更多