Add data according to JSON file

I'm ingesting data from database and trying to create new field and ingest data according to a JSON file. Let me give an example:
I have field named 'type' and data in this field as 'cat', 'dog', 'flower'.
Also have an JSON file like this:

    "cat": "animal",
    "dog": "animal",
    "flower": "plant"

I want to create a field named ''type_super" and add data by this JSON.

*doc - type - type_super
doc1 - cat - animal
doc2 - flower - plant
doc3 - dog - animal

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