see https://github.com/ongr-io/ElasticsearchBundle/blob/1fc70e11c087b8759b87e2aaa6655999d5a940b6/Tests/Functional/ORM/RepositoryTest.php#L235-L239