RestHighLevelClient, warning "Deprecated field [type] used"

Thanks for the additional details. By default the RestHighLevelClient will send type = "MEMORY" and the server will issue a warning. And unfortunately setting type to null will throw an exception.

There are two options: