olivere / elastic

Deprecated: Use the official Elasticsearch client for Go at https://github.com/elastic/go-elasticsearch
https://olivere.github.io/elastic/
MIT License
7.41k stars 1.15k forks source link

I want to get the result body. Is there any way? #1658

Closed zs459774023 closed 1 year ago

zs459774023 commented 1 year ago

I'm using elastic In V5, because the business rewrites the result body, in addition to the standard result, there are other data to be obtained according to the body. What should I do?

olivere commented 1 year ago

You could use the PerformRequest method directly on the client, then deserialise the envelope on your side.