forum

home / developersection / forums / proper mapping for dynamic fields

Proper Mapping for dynamic fields

Hank Greenberg 2721 08-Jul-2013
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?


Updated on 08-Jul-2013
Can you answer this question?

Answer

1 Answers

Liked By