Skip to content

"NativeQueryBuilder" class : the "withSearchExtensions" function does not set the expected field #2542

Closed
@pierre-mazieres-semarchy

Description

On last 5.0.5 version,
In the "org.springframework.data.elasticsearch.client.elc" package,
There is the "NativeQueryBuilder" class.

This class has a field named "searchExtensions".
private Map<String, JsonData> searchExtensions = new LinkedHashMap<>()

There is a "withSearchExtensions" setter function for this field.
public NativeQueryBuilder withSearchExtensions(Map<String, JsonData> searchExtensions)

In order for the "searchExtensions" field to be set,
we have to correct this code line searchExtensions.putAll(searchExtensions)
to this.searchExtensions.putAll(searchExtensions)

For information, I created a pull-request
#2543

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions