Hey Guys,

How can I map an arbitrary map of key/values in ES? My JSON looks like the 
following, where "name" and "age" are static but "attributes" is dynamic:

{
  "name": "john",
  "age": 25,
  "attributes" : {
    "key1": value1,
    "key2": value2,
    "key3": value3,
    ...
  }
}

Things to consider:
1. Not all documents have the same number of attributes or even the same 
attributes.
2. Different documents can have values of different types for the same name 
attributes (say "attr1" is string for doc 1 but is int for doc 2)
3. Attribute value can only be primitive json type (boolean, integer, number, 
null or string) or an array of primitive type.
4. It goes without saying that the attributes must be searchable.

Thanks,

Drew

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/BB50D9C2-1F16-437F-A6AB-7FEB25427743%40venarc.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to