You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@sundarv85 You're right. Using Pretty(true) simply makes Elastic pass pretty=true as a URL query parameter to Elasticsearch. So in the end, Elasticsearch will pretty print the response and I simply output the pretty-printed response. Elastic doesn't do anything to pretty print anything, neither request nor response. So it first of all is a documentation issue.
I will have to dig into net/http/httputil to see if there's anything I can do to get the HTTP request pretty printed.
Hello,
I have enabled
elastic.SetTraceLog(log.New(os.Stdout, "", log.LstdFlags))
and have set the Pretty as trueThis prints the response in the pretty format. However the request is not pretty. I’m using
"gopkg.in/olivere/elastic.v3"
The text was updated successfully, but these errors were encountered: