Home > Software engineering >  Elasticsearch exception unrecognized parameter ccs_minimize_roundtrips
Elasticsearch exception unrecognized parameter ccs_minimize_roundtrips

Time:11-24

I am getting the following error while searching data from elasticsearch through spring data jpa

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

Here is my maven dependancies

<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>

I think the ES server version and api version is same but i am still getting this error.

N.B This is not the duplicate because i am getting this error even in older version

CodePudding user response:

The ccs_minimize_roundtrips parameter has been added in 7.0.0-beta1, so my take is that you're using a client version that is more recent (i.e. 7 ) than your Elasticsearch server version.

According to your Maven dependencies, spring-data-elasticsearch:3.2.3 depends on Elastic 6.8.12, so there is a small disconnect between the client and server versions.

  • Related