Debug.explain is not working

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!

This doesn't look like a Logstash question :slight_smile:

You may be better off asking in a different product forum.

I moved the question to #elasticsearch

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.