Skip to content

Errors are silent in multiGet #1678

@efreeti

Description

@efreeti

When executing the multiGet request Elasticsearch client does provide a failure information per each entry. For some not very clear reason to me the implementation for ReactiveElasticsearchClient (and I think ElasticsearchClient too) is silenting those in the same way as non existing entries - https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/client/reactive/DefaultReactiveElasticsearchClient.java#L352

It is not clear to me why this is a desired behaviour. This also makes it impossible to use multiGet from Spring Data layer and handle errors. It is also not very easy to override this behaviour by extending the class - a lot of used utility methods are private.

It would really be useful to not force this and either change the behaviour of client or at least add option to prevent this.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions