ElasticsearchBundle icon indicating copy to clipboard operation
ElasticsearchBundle copied to clipboard

Raw object property (enabled: false)

Open tautrimas opened this issue 8 years ago • 1 comments

We cannot map arbitrary object structure inside PHP object.

Example from https://www.elastic.co/guide/en/elasticsearch/reference/current/enabled.html:

PUT my_index
{
  "mappings": {
    "session": { 
      "enabled": false
    }
  }
}

PUT my_index/session/session_1
{
  "user_id": "kimchy",
  "session_data": {
    "arbitrary_object": {
      "some_array": [ "foo", "bar", { "baz": 2 } ]
    }
  },
  "last_updated": "2015-12-06T18:20:22"
}

Solution would be something like Doctrine's json type.

tautrimas avatar Sep 14 '16 10:09 tautrimas

I really need this too

hthtung90 avatar Aug 29 '17 09:08 hthtung90