Skip to content

RequestFactory#updateByQueryRequest creates request with only the first index from IndexCoordinates #2191

Closed
@idemidenko

Description

@idemidenko

Version

spring-data-elasticsearch:4.2.3

Description

updateByQueryRequest takes only the fist index from IndexCoordinates and therefore creates an update request with the single index, instead of that the request should contain all indices passed in IndexCoordinates

public UpdateByQueryRequest updateByQueryRequest(UpdateQuery query, IndexCoordinates index) {

    String indexName = index.getIndexName(); // takes only the fist index from IndexCoordinates
    // String[] indexName = index.getIndexNames(); - should take all index names instead
    final UpdateByQueryRequest updateByQueryRequest = new UpdateByQueryRequest(indexName);
    // ...
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions