I am using in python the module pyelasticsearch v7.10.1 and I am trying to update a document in one index in the elasticsearch server. What should I do if I want to create a hyperlink field during the update?
source_to_update = {
"doc": {
"x": "val of x",
"y": "val of y",
"urlfield": ???"www.google.com" }
}
try:
response = es.update(
index=index,
doc_type="_doc",
id=doc['_id'],
body=source_to_update
)
except Exception as err:
print('Elasticsearch Update API error:', err)