spring data Elasticsearch reactive approach to update by query

30 Views Asked by At

Unable to find the appropriate approach to update by query (reactive) in sring-data-elasticsearch:3.1.1.

Earlier versions had something UpdateBy which took a query, but it seems to be deprecated in newer versions.

Looking for something to achieve this - update-by-query

I am not sure which method shall I use, the document couldn't help.

1

There are 1 best solutions below

0
P.J.Meisch On

Spring Data Elasticsearch 3.1.1 is a version from 2018, I assume you are not using that but mean that you use Spring Boot 3.1.1, the version of Spring Data Elasticsearch pulled in from that is 5.1.x

Since 4.2 there is the method ReactiveElasticsearchOperations.updateByQuery(...) check the API docs. There is nothing deprecated here.