Prevent ingest pipeline processor from nesting field names

Consider the following ingest pipeline w/simulation...

PUT _ingest/pipeline/test
{
  "processors": [
    {
      "set": {
        "field": "donot.nest",
        "value": "somevalue",
        "if": "ctx['somedata'] == 2"
      }
    }
  ]
}
POST /_ingest/pipeline/test/_simulate
{
  "docs": [
    {
      "_source": {
        "somedata": 2
      }
    }
  ]
}

I need to prevent the field specified in the set processor from being nested when it is created.

What is being created...

"donot": {
  "nest": "somevalue"
},

What is needed...

"donot.nest": "somevalue"

Is this at all possible using Painful?

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