How to use remove processor in php

I need to remove fields in our documents, elastic search have remove process to remove multiple fields in our documents,

please suggest me how to remove multiple fields using curl and php.

example I need to remove name and email for following scenario

  1. fields
    {
    "name": "Rajkumar",
    "email": "test@gmail.com"
    }

  2. object with in objects
    {
    "data" : {
    "name": "Rajkumar",
    "email": "test@gmail.com"
    }
    }

  3. array with in objects
    {
    "data" : [
    {
    "name": "Rajkumar",
    "email": "test@gmail.com"
    }
    ]
    }

Thanks in advance

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