this should really barf if it is `null` no? ie. `ElasticsearchIllegalArgumentException`?