I'm using olivere's v.5 elasticsearch library - https://godoc.org/github.com/olivere/elastic
Trying to check if a particular field exists in a document. According to ES docs, it's possible - https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-exists-query.html
But I can't find a Go query in the library to execute that. I found the NewExistsService but I don't see a method to search by field name. I need something like
elasticClient.Exists().Field("datefield")
which returns true or false. But 'Field' is not a method of 'NewExistsService'. Any help would be appreciated.