Elasticsearch 异常无法识别的参数 ccs_minimize_roundtrips
Elasticsearch exception unrecognized parameter ccs_minimize_roundtrips
通过 spring data jpa
从 elasticsearch 搜索数据时出现以下错误
23-11-2021 19:51:20.699 [http-nio-8990-exec-2] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is ElasticsearchStatusException[Elasticsearch exception [type=illegal_argument_exception, reason=request [/dummy/_doc/_search] contains unrecognized parameter: [ccs_minimize_roundtrips]]]] with root cause
这是我的 maven 依赖关系
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
<version>2.2.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
我认为 ES 服务器版本和 api 版本相同,但我仍然收到此错误。
N.B 这不是重复的,因为即使在旧版本中我也会收到此错误
ccs_minimize_roundtrips
参数已添加到 7.0.0-beta1 中,所以我认为您使用的客户端版本比 Elasticsearch 服务器版本更新(即 7+)。
根据您的 Maven 依赖关系,spring-data-elasticsearch:3.2.3
depends on Elastic 6.8.12,因此客户端和服务器版本之间存在小的断开。
通过 spring data jpa
从 elasticsearch 搜索数据时出现以下错误23-11-2021 19:51:20.699 [http-nio-8990-exec-2] ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is ElasticsearchStatusException[Elasticsearch exception [type=illegal_argument_exception, reason=request [/dummy/_doc/_search] contains unrecognized parameter: [ccs_minimize_roundtrips]]]] with root cause
这是我的 maven 依赖关系
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
<version>2.2.2.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-elasticsearch</artifactId>
<version>3.2.3.RELEASE</version>
</dependency>
我认为 ES 服务器版本和 api 版本相同,但我仍然收到此错误。
N.B 这不是重复的,因为即使在旧版本中我也会收到此错误
ccs_minimize_roundtrips
参数已添加到 7.0.0-beta1 中,所以我认为您使用的客户端版本比 Elasticsearch 服务器版本更新(即 7+)。
根据您的 Maven 依赖关系,spring-data-elasticsearch:3.2.3
depends on Elastic 6.8.12,因此客户端和服务器版本之间存在小的断开。