Scroll query fails on a certain index type (ESv5)

This post was flagged by the community and is temporarily hidden.

I should add that I never see the final PHP-generated messages if I run the script with the _type set to "minimap" (the problematic type).