I have the below script that I'm trying to execute to update a document. But Debug.explain()
doesn't seem to be working. Any insights into this would be appreciated. My Elasticsearch version is 5.5.0
.
Script script = new Script(
Script.DEFAULT_SCRIPT_TYPE,
Script.DEFAULT_SCRIPT_LANG,
"""
Object details = ctx._source.personDetails;
Debug.explain(details); // This is not working
// some other code
return details;
""",
Collections.emptyMap()
)
esClient.prepareUpdate(index, type, documentId).setScript(script).get()
Thanks!