Proper Mapping for dynamic fields

Total Post:12


 1918  View(s)
Rate this:
Hi Expert!

I have the following document structure:

  "some_field": "some_data",
  "entries": {
    {"id": "some_id", "type": "some_type", "value": "some_value"},
    {"id": "another_id", "type": "another_type", "value": {"foo": 1, "bar": "two"}

So I would like to map entries based on the "type" field. Which mapping type or flag should I use? Or maybe I need to change my doc structure?

  1. Re: Proper Mapping for dynamic fields

    Hi Hank!

    I think you should use array with "'[' ']'" you can check your json using this website



Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.