The rest of the answer is probably best in the form of some extra questions . . .
• Are you using an ElasticSearch client library? If so, you should probably just stub that.
• If you used Pact, would you also be running verifications against ES?
• ES has an
OAS spec, so could you get by with a generator for stubs?