elasticsearch-java icon indicating copy to clipboard operation
elasticsearch-java copied to clipboard

ElasticsearchClient._transportOptions() should not return null

Open swallez opened this issue 3 years ago • 1 comments

Java API client version

7.16

Java version

all

Elasticsearch Version

all

Problem description

ElasticsearchClient._transportOptions() returns null if no options were set on the client.

It would be more convenient to have this method default to returning the underlying transport's option in that case.

Similary it would be more convient to have withTransportOptions accept a builder lambda that augments existing options.

swallez avatar Mar 17 '22 16:03 swallez

upvoting this!

tongdaoqa avatar Jun 27 '23 09:06 tongdaoqa