You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the method signature for IndexRequestBuilder.setSource(Map<String, Object> source) should be changed to IndexRequestBuilder.setSource(Map<String, ?> source).
Since the method is overloaded, a call to setSource with a Map<String, String> as parameters will invoke the method IndexRequestBuilder.setSource(Object... source), to great confusion.
The same goes for CreateIndexRequestBuilder.setSettings(Map<String, Object> source) in the indices admin client, and a few others.
The text was updated successfully, but these errors were encountered:
…lder
IndexRequestBuilder#setSource as well as CreateIndexRequestBuilder#setSettings and
CreateIndexRequestBuilder#setSouce() will not work with Map<String, String> argument
although the API looks like it should. This PR fixes the problem introducing correct
wildcard parameters and adds tests.
Closeselastic#10825
…lder
IndexRequestBuilder#setSource as well as CreateIndexRequestBuilder#setSettings and
CreateIndexRequestBuilder#setSouce() will not work with Map<String, String> argument
although the API looks like it should. This PR fixes the problem introducing correct
wildcard parameters and adds tests.
Closeselastic#10825
I believe the method signature for
IndexRequestBuilder.setSource(Map<String, Object> source)
should be changed toIndexRequestBuilder.setSource(Map<String, ?> source)
.Since the method is overloaded, a call to
setSource
with aMap<String, String>
as parameters will invoke the methodIndexRequestBuilder.setSource(Object... source)
, to great confusion.The same goes for
CreateIndexRequestBuilder.setSettings(Map<String, Object> source)
in the indices admin client, and a few others.The text was updated successfully, but these errors were encountered: