I see - I naively assumed you were simply putting the document you supplied to the index and relied on automatic mappings. Seems like you supplied an explicit mapping beforehand then, right?
I think the information on the following github issue might help you: Deprecate the `missing` query in favour of a negated `exists` query · Issue #14112 · elastic/elasticsearch · GitHub
Hope this helps,
Isabel